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
Behdad Esfahbod
04a47932a3
[paint] Remove enum trailing comma in C header
...
Fixes https://github.com/harfbuzz/harfbuzz/discussions/4188
2023-03-31 11:44:08 -06:00
Garret Rieger
2cd81fdfb6
[subset] fix memory leak.
...
Fixes fuzzer issue https://oss-fuzz.com/testcase-detail/6169920089227264
2023-03-30 16:19:41 -06:00
Behdad Esfahbod
453ded0539
[indic] Tighten up base-finding
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4185
2023-03-28 13:18:03 -06:00
Qunxin Liu
c1acfe9966
[instancer] bug fix in TupleVariationData get_size ()
...
We need to iterate TupleVariationHeader when calculating the total size
2023-03-27 15:37:06 -06:00
Garret Rieger
be87200106
[subset] fix buffer overflow fuzzer reported issue.
2023-03-25 10:11:46 -04:00
Garret Rieger
79ae6b657f
[subset] Fix fuzzer found memory leaks.
2023-03-25 10:11:46 -04:00
Qunxin Liu
ab87d7d225
[instance] add tests for colrv1 full instancing
2023-03-21 11:51:58 -06:00
Qunxin Liu
fe671a5ac8
[instancer] support COLRv1 full instancing
2023-03-21 11:51:58 -06:00
Garret Rieger
f0f7f22525
[subset] fix fuzzer found null deref.
...
https://oss-fuzz.com/testcase-detail/5844352760152064
2023-03-21 11:41:09 -06:00
Garret Rieger
79233a1492
[subset] fix incorrectly specified lock.
...
Lock variable must have a name or it will immediately destruct.
2023-03-16 20:30:39 -06:00
Garret Rieger
8d8bcde8cf
[set] don't allow -1 (HB_SET_VALUE_INVALID) to be inserted into a hb_set_t.
...
Add tests that check all of the addition methods.
2023-03-15 12:10:18 -06:00
Garret Rieger
a84cae424d
[subset] Don't add invalid gids (-1) to the glyphset when loading glyph map from the accelerator.
2023-03-15 12:10:18 -06:00
Behdad Esfahbod
09a2662361
Merge pull request #4168 from googlefonts/subset_name_collect
...
[subset] name_id closure
2023-03-14 12:48:12 -06:00
Behdad Esfahbod
75e6498d9a
Don't use M_PI
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4166
Happy Pi Day!
2023-03-14 12:41:46 -06:00
Qunxin Liu
204e155acb
[subset] Add tests for collecting name_ids from STAT and FeatureParams
2023-03-14 10:25:31 -07:00
Jason Simmons
32c889f1d6
Remove extra blank line in hb-outline.cc
2023-03-13 20:35:59 -06:00
Qunxin Liu
0d65738633
[subset] collect elidedFallbackNameID in STAT table
2023-03-13 15:51:45 -07:00
Qunxin Liu
125450d2f2
[subset] collect name_ids for FeratureParams
2023-03-13 15:43:29 -07:00
Garret Rieger
663ecc01d8
[subset] don't free glyphs by range.
...
The iterator in this loop is a map iterator so glyphs are not necessarily traveresed in order.
2023-03-13 16:32:59 -06:00
Garret Rieger
3d05b96181
[subset] track which glyphs have allocated memory so we can clean up correctly.
...
Fixes https://oss-fuzz.com/testcase-detail/5388270411579392
2023-03-13 16:03:58 -06:00
Garret Rieger
7a87b17742
Check for failed subset input creation in the fuzzer.
2023-03-13 15:21:25 -06:00
Qunxin Liu
de6533d885
[subset] collect name_ids from CPAL table
2023-03-13 13:36:00 -07:00
Qunxin Liu
7b77cd198c
[subset] fix bug in CPAL V1tail serialization
...
We should serialize nameIDs rather than retained color index
2023-03-13 12:51:46 -07:00
Behdad Esfahbod
6d2705a719
[justify-demo] Help message
2023-03-10 12:40:57 -07:00
Simon Cozens
2d8634624c
Add Tifinagh to list of both-directions scripts
2023-03-10 10:55:11 -07:00
Jean-Michaël Celerier
905eeee4a4
harfbuzz-config.cmake: support static library build
2023-03-09 20:31:39 +02:00
Garret Rieger
28b05e1cb6
[subset] Fix memory leak in glyf subset.
...
Fixes fuzzer issue: https://oss-fuzz.com/testcase-detail/6525813890875392 .
2023-03-08 17:02:04 -07:00
Garret Rieger
9286e12525
Don't subset a glyf table with an unknown format.
...
Fixes fuzzer issue: https://oss-fuzz.com/testcase-detail/4875306193518592
2023-03-08 14:51:54 -07:00
Behdad Esfahbod
cfa9541daa
[glyf] "Support" glyf version 1
2023-03-08 10:35:39 -07:00
Behdad Esfahbod
552290f604
[gvar] Fix out-of-memory access issue
...
Fixes https://oss-fuzz.com/testcase-detail/5953342850596864
2023-03-08 10:25:26 -07:00
Behdad Esfahbod
7327006d68
[GSUB] Support SingleSubst in get_glyph_alternates
...
Fixes https://github.com/harfbuzz/harfbuzz/discussions/4146
2023-03-07 21:06:01 -07:00
Behdad Esfahbod
69183217df
Add test-gsub-get-alternates.cc
2023-03-07 20:56:56 -07:00
Behdad Esfahbod
ea17c7a81a
[beyond-64k] Implement gvar support
...
https://github.com/harfbuzz/boring-expansion-spec/issues/85
2023-03-07 14:23:39 -07:00
Behdad Esfahbod
f325aba561
[VarComposites] Minor rename
2023-03-06 13:07:42 -07:00
Khaled Hosny
b4b089c427
[docs] Disable gtdoc-check by default
...
It slows build as it causes documentation to be always rebuilt. We now
disable it by default and enable it on relevant CI jobs.
2023-03-06 06:06:06 +02:00
Behdad Esfahbod
d165afec1d
[justify-demo] Create new fonts all the time
...
The hb.shape_justify() call modifies the font. This was messing
up justification. Create new fonts all the time.
2023-03-04 21:09:26 -07:00
Khaled Hosny
690145fa00
[justify-demo] Rewrite in a simpler way
...
No need to overthink it, append text words to the line and reshape, no
need to shape the whole text first and do complicated glyph/input
mapping. Much simpler code and as fast.
2023-03-04 07:19:20 +02:00
Behdad Esfahbod
e9d6f23b5d
[justify-demo] Fix for LTR typesetting
2023-03-03 17:15:18 -07:00
Behdad Esfahbod
5cf54aedde
[justify-demo] Guess segment properties
2023-03-03 17:01:12 -07:00
Behdad Esfahbod
5c334b9686
[justify-demo] Fix crash if font has no variation axis
2023-03-03 16:53:44 -07:00
Behdad Esfahbod
ab249fd24b
[justify] Fix shrink/expand conditions
2023-03-04 01:46:07 +02:00
Khaled Hosny
039ea9adda
[justify] Add demo GTK app
2023-03-04 01:44:01 +02:00
Behdad Esfahbod
be47182d48
[hb-cairo] Add Black Foundry copyright
2023-03-03 11:10:16 -07:00
Behdad Esfahbod
ab4c321180
[justify] Set out params in more cases
2023-03-03 09:31:16 -07:00