Commit Graph

15907 Commits

Author SHA1 Message Date
Behdad Esfahbod 77f0f3c11a [wasm-api] Make buffer_copy_contents return zero length on mem fail 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 2568890d15 [wasm-shape] Retry shaping if out-of-memory 2023-03-31 17:33:45 -06:00
Behdad Esfahbod cb382e489d [wasm-shape] Cache wasm-shape-plan 2023-03-31 17:33:44 -06:00
Behdad Esfahbod 73de7d4d05 [wasm-api] Add shape_plan 2023-03-31 17:33:44 -06:00
Behdad Esfahbod a267249930 [wasm] Typo 2023-03-31 17:33:44 -06:00
Behdad Esfahbod 99d2dab30f [wasm] Try at autotools build 2023-03-31 17:33:44 -06:00
Behdad Esfahbod ed39e07661 [wasm] Fix docs 2023-03-31 17:33:44 -06:00
Behdad Esfahbod c5af08c0dc [wasm] Add to harfbuzz.cc and hb-features 2023-03-31 17:33:44 -06:00
Behdad Esfahbod aa8f9eed63 [wasm-shape] Use JIT running-modes if available
Build wasm-micro-runtime with:

$ cmake . -DWAMR_BUILD_REF_TYPES=1 -DWAMR_BUILD_FAST_JIT=1

or:

$ cmake . -DWAMR_BUILD_REF_TYPES=1 -DWAMR_BUILD_JIT=1

The latter needs llvm and is harder to get working. Still trying.
2023-03-31 17:33:44 -06:00
Behdad Esfahbod 8d960dfe68 [wasm-sample] Remove Wasm table from test.ttf again
Was added by mistake.
2023-03-31 17:33:44 -06:00
Behdad Esfahbod 1c6d640e1f [wasm-shaper] Whitespace 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 2327fe9d8a [hb-wasm] Remove TODO 2023-03-31 17:33:44 -06:00
Behdad Esfahbod b130b2b331 [graphite] Simplify direction handling 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 cbc71c56bc [graphite] Ensure native direction
Mirrored characters come out wrong. Oh well. Better than before though.
2023-03-31 17:33:44 -06:00
Behdad Esfahbod 39f8703df1 [wasm-api] Match interface and implementation signatures 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 863ec70e12 [wasm-shape] Add TODO items 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 d7f76f30b0 [wasm-graphite] Memory cleanup 2023-03-31 17:33:44 -06:00
Behdad Esfahbod 5738851b1c [wasm-api] Disallow "wasm" shaper in shape_with 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 a5c844a1de [wasm] Rename macro 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 07ece17495 [wasm-graphite] Initial code 2023-03-31 17:33:44 -06:00
Behdad Esfahbod ae981eec8e [graphite] Remove script handling
https://github.com/harfbuzz/harfbuzz/issues/3439#issuecomment-1442650148
2023-03-31 17:33:44 -06:00
Behdad Esfahbod 5ab7f7a7d4 [wasm-sample] Make addTable take args 2023-03-31 17:33:44 -06:00
Behdad Esfahbod 551528a6e6 [wasm-sample] Remove unused prototype 2023-03-31 17:33:44 -06:00
Behdad Esfahbod 926f8a326e [wasm-sample] Actually shape text! 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 af1f41a43e [wasm-api] Clear structs in _free() 2023-03-31 17:33:44 -06:00
Behdad Esfahbod 099a0150e1 [wasm] Add HB_STRUCT_TYPE 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 3bec8dca1c [wasm-sample] Free blob data for now 2023-03-31 17:33:44 -06:00
Behdad Esfahbod d45a13f101 [wasm] Add wasm-sample/ 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 50b22368d0 Revert "Fix function signature"
This reverts commit d70ebf98b0c696f3c66a20b1243cb347e3e3abc8.

Nope. A struct return is not returned that way.
2023-03-31 17:33:44 -06:00
Simon Cozens 743cd2c46e Fix function signature 2023-03-31 17:33:44 -06:00