Simon Cozens
83b9c34f0b
[wasm] Add rust example
2023-03-31 17:33:45 -06:00
Simon Cozens
840b5dff73
[wasm] Improve Rust docs, refer to new crate
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
1023a80d39
[wasm] Fix up samples
2023-03-31 17:33:45 -06:00
Behdad Esfahbod
4ad659a608
[wasm] Move wasm-graphite
2023-03-31 17:33:45 -06:00
Simon Cozens
514a8d58d8
[wasm-api] Add ergonomic Rust interface
2023-03-31 17:33:45 -06:00
Simon Cozens
74deaa9e78
[wasm-api] Restructure samples/libraries
2023-03-31 17:33:45 -06:00
Behdad Esfahbod
4bdfaeecef
[wasm-shape] Set glyph flags
2023-03-31 17:33:45 -06:00
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