Commit Graph

41 Commits

Author SHA1 Message Date
Behdad Esfahbod 2663a9b6f9 [wasm] Rename a couple APIs 2023-03-31 17:38:23 -06:00
Behdad Esfahbod f9dd402ef8 [wasm] Fix header 2023-03-31 17:33:45 -06:00
Simon Cozens 85a1fdd93f [wasm] get/set font variation parameters 2023-03-31 17:33:45 -06:00
Simon Cozens 3fc48d4ada [wasm] [experimental] wrap hb_face_create and hb_create_font 2023-03-31 17:33:45 -06:00
Behdad Esfahbod c5a88a068b [wasm-api] Minor cleanup 2023-03-31 17:33:45 -06:00
Behdad Esfahbod 918df8ccaf [wasm-api] Add glyph_outline_free 2023-03-31 17:33:45 -06:00
Behdad Esfahbod 7fff4a19ad [wasm-api] Reuse allocation in font_copy_glyph_outline 2023-03-31 17:33:45 -06:00
Behdad Esfahbod f2d227ad9f [wasm-api] Respect existing blob allocation in face_copy_blob 2023-03-31 17:33:45 -06:00
Behdad Esfahbod e7540043de [wasm-api] Make buffer_copy_contents reuse contents 2023-03-31 17:33:45 -06:00
Behdad Esfahbod 65966e0c3d [wasm-api] Add font_copy_glyph_outline 2023-03-31 17:33:45 -06:00
Behdad Esfahbod 2004528cf8 [wasm-api] Change face_copy_table to return success 2023-03-31 17:33:45 -06:00
Behdad Esfahbod 28a7c1f932 [wasm-api] Rename face_reference_table to face_copy_table 2023-03-31 17:33:45 -06:00
Behdad Esfahbod b5b577f29f [wasm-api] Make buffer_copy_contents return success 2023-03-31 17:33:45 -06:00
Behdad Esfahbod 16ecb96922 [wasm-api] Return success from buffer_contents_realloc 2023-03-31 17:33:45 -06:00
Behdad Esfahbod 73de7d4d05 [wasm-api] Add shape_plan 2023-03-31 17:33:44 -06:00
Behdad Esfahbod 9f8ad3928a [wasm-api] Bind shaper features 2023-03-31 17:33:44 -06:00
Behdad Esfahbod ec3270c7bb [wasm-graphite] Ensure native direction here too
Binds buffer_get_script and script_get_horizontal_direction.
2023-03-31 17:33:44 -06:00
Behdad Esfahbod fea3ffe031 [wasm-api] Beautify internal API 2023-03-31 17:33:44 -06:00
Behdad Esfahbod fe557e2f21 [wasm-api] Bind font_get_glyph_extents
Untested.
2023-03-31 17:33:44 -06:00
Behdad Esfahbod b3b6e8da86 [wasm-api] Bind buffer_reverse 2023-03-31 17:33:44 -06:00
Behdad Esfahbod 1acff90b03 [wasm-api] Bind font_glyph_to_string 2023-03-31 17:33:44 -06:00
Behdad Esfahbod 7537d48f08 [wasm] Remove a few lingering hb_ 2023-03-31 17:33:44 -06:00
Behdad Esfahbod 2bde2f66f1 [wasm-api] Bind shape_with 2023-03-31 17:33:44 -06:00
Behdad Esfahbod a08dbf41cd [wasm-api] Bind buffer_reverse_clusters 2023-03-31 17:33:44 -06:00
Behdad Esfahbod 0a51ed31b0 [wasm-api] Bind buffer_get_direction 2023-03-31 17:33:44 -06:00
Behdad Esfahbod 23b58b5667 [wasm-api] Bind font_get_scale 2023-03-31 17:33:44 -06:00
Behdad Esfahbod 149199ee26 [wasm-api] Bind face_get_upem 2023-03-31 17:33:44 -06:00
Behdad Esfahbod 2d295183b8 [wasm-api] Add buffer_contents_realloc 2023-03-31 17:33:44 -06:00
Behdad Esfahbod c1dc112121 [wasm-api] Bind buffer_set_contents 2023-03-31 17:33:44 -06:00
Simon Cozens e0fec1dda0 [wasm-api] Wrap some of hb-font 2023-03-31 17:33:44 -06:00
Behdad Esfahbod 851ef1380a [wasm-api] Add buffer-contents-free 2023-03-31 17:33:44 -06:00
Behdad Esfahbod d38f02ab30 [wasm-api] Make ref types actual pointers on the wasm side 2023-03-31 17:33:44 -06:00
Behdad Esfahbod cbd5c554fb [wasm-api] Add blob_free 2023-03-31 17:33:44 -06:00
Behdad Esfahbod 5cecfe8659 [wasm-api] Bind buffer_copy_contents 2023-03-31 17:33:44 -06:00
Behdad Esfahbod 3b88bd9742 [wasm-api] Make ptr_t a pointer on the wasm side 2023-03-31 17:33:44 -06:00
Behdad Esfahbod e87b1b3ec3 [wasm-api] Try to add face_reference_table 2023-03-31 17:33:44 -06:00
Behdad Esfahbod 3bc0ecf28c [wasm-api] Add ref_t 2023-03-31 17:33:44 -06:00
Behdad Esfahbod bd28d01a6a [wasm-api] Add HB_WASM_INTERFACE 2023-03-31 17:33:44 -06:00
Behdad Esfahbod 9f4dc2e103 [wasm] Bind native API 2023-03-31 17:33:44 -06:00
Behdad Esfahbod e79a7318c4 [wasm] Start adding wasm-api 2023-03-31 17:33:44 -06:00
Behdad Esfahbod 829ba74284 [wasm] Add hb-wasm-api.h 2023-03-31 17:33:44 -06:00