summaryrefslogtreecommitdiffstats
path: root/gfx/harfbuzz/src/wasm/sample/c/shape-ot.cc
blob: 9081cfebcc8d8af949f9e79a913289bb9e9f1a60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#define HB_WASM_INTERFACE(ret_t, name) __attribute__((export_name(#name))) ret_t name

#include <hb-wasm-api.h>

extern "C" {
void debugprint1 (const char *s, int32_t);
void debugprint2 (const char *s, int32_t, int32_t);
}

bool_t
shape (void *shape_plan,
       font_t *font,
       buffer_t *buffer,
       const feature_t *features,
       uint32_t num_features)
{
  return shape_with (font, buffer, features, num_features, "ot");
}