xref: /aosp_15_r20/external/harfbuzz_ng/src/wasm/sample/c/shape-ot.cc (revision 2d1272b857b1f7575e6e246373e1cb218663db8a)
1 #define HB_WASM_INTERFACE(ret_t, name) __attribute__((export_name(#name))) ret_t name
2 
3 #include <hb-wasm-api.h>
4 
5 extern "C" {
6 void debugprint1 (const char *s, int32_t);
7 void debugprint2 (const char *s, int32_t, int32_t);
8 }
9 
10 bool_t
shape(void * shape_plan,font_t * font,buffer_t * buffer,const feature_t * features,uint32_t num_features)11 shape (void *shape_plan,
12        font_t *font,
13        buffer_t *buffer,
14        const feature_t *features,
15        uint32_t num_features)
16 {
17   return shape_with (font, buffer, features, num_features, "ot");
18 }
19