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
863ec70e12
[wasm-shape] Add TODO items
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
747dcf561d
[wasm] Strong typing for object references
...
Such that wasm cannot crash us by passing wrong object refs.
https://github.com/bytecodealliance/wasm-micro-runtime/discussions/1987
It still is unsafe if some code in the process other than HarfBuzz
registers refs with wasm-micro-runtime, since wasm_externref_ref2obj()
takes no context variable and looks up refs globally :(.
Maybe I fix that later by keeping a hash table of ref->obj-type instead.
2023-03-31 17:33:44 -06:00
Behdad Esfahbod
42d121ae79
[wasm] Add hb-wasm-api.cc
2023-03-31 17:33:44 -06:00
Behdad Esfahbod
bb8a04cbad
[wasm] Remove the print(returnval) and use it to fail shaper
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
11c6d46086
[wasm] Pass font & buff to shape() function
2023-03-31 17:33:44 -06:00
Simon Cozens
05bf984212
Add a simple callback native function
2023-03-31 17:33:44 -06:00
Behdad Esfahbod
bdbc1568ba
[wasm] Port from c_api to wasm-micro-runtime wasm_runtime API
2023-03-31 17:33:44 -06:00
Behdad Esfahbod
db8e51e01b
[wasm] More boilerplate
2023-03-31 17:33:44 -06:00
Behdad Esfahbod
fcc8be409b
[wasm] Add meson build option
...
Autotools support missing.
2023-03-31 17:33:44 -06:00
Behdad Esfahbod
425fc7f3ee
[wasm] Add wasm shaper skeleton
2023-03-31 17:33:44 -06:00