shape-ot.cc (436B)
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 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 }