mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[wasm-api] Finish face_reference_table
This commit is contained in:
parent
69b1707d82
commit
108995bbc6
1 changed files with 10 additions and 3 deletions
|
@ -36,11 +36,18 @@ face_reference_table (HB_WASM_EXEC_ENV_COMPOUND
|
|||
face_t faceref,
|
||||
tag_t table_tag)
|
||||
{
|
||||
HB_RETURN_TYPE (blob_t, blob);
|
||||
|
||||
HB_RETURN_TYPE (blob_t, ret);
|
||||
HB_REF2OBJ (face);
|
||||
|
||||
blob.length = 1;
|
||||
hb_blob_t *blob = hb_face_reference_table (face, table_tag);
|
||||
|
||||
unsigned length;
|
||||
const char *data = hb_blob_get_data (blob, &length);
|
||||
|
||||
ret.data = wasm_runtime_module_dup_data (module_inst, data, length);
|
||||
ret.length = length;
|
||||
|
||||
hb_blob_destroy (blob);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue