diff --git a/src/hb-wasm-api.h b/src/hb-wasm-api.h index 4c5421e20..8f1f04e73 100644 --- a/src/hb-wasm-api.h +++ b/src/hb-wasm-api.h @@ -113,10 +113,6 @@ typedef struct HB_WASM_API (void, blob_free) (HB_WASM_EXEC_ENV ptr_d(blob_t, blob)); -HB_WASM_API (ptr_t(face_t), blob_face_create) (HB_WASM_EXEC_ENV - ptr_d(blob_t, blob), - unsigned int); - /* buffer */ typedef struct @@ -178,6 +174,10 @@ HB_WASM_API (void, buffer_reverse_clusters) (HB_WASM_EXEC_ENV typedef struct face_t face_t; +HB_WASM_API (ptr_t(face_t), blob_face_create) (HB_WASM_EXEC_ENV + ptr_d(blob_t, blob), + unsigned int); + HB_WASM_API (bool_t, face_copy_table) (HB_WASM_EXEC_ENV ptr_d(face_t, face), tag_t table_tag, @@ -186,13 +186,13 @@ HB_WASM_API (bool_t, face_copy_table) (HB_WASM_EXEC_ENV HB_WASM_API (unsigned, face_get_upem) (HB_WASM_EXEC_ENV ptr_d(face_t, face)); -HB_WASM_API (ptr_t(font_t), face_create_font) (HB_WASM_EXEC_ENV - ptr_d(face_t, face)); - /* font */ typedef struct font_t font_t; +HB_WASM_API (ptr_t(font_t), face_create_font) (HB_WASM_EXEC_ENV + ptr_d(face_t, face)); + HB_WASM_API (ptr_t(face_t), font_get_face) (HB_WASM_EXEC_ENV ptr_d(font_t, font));