Behdad Esfahbod
317e3693da
[beyond-64k] Fail hmtx subsetting if subset too large
2023-04-20 11:48:43 -06:00
Behdad Esfahbod
64ecf8720c
[beyond-64k] Fix subsetting of maxp
2023-04-20 11:42:45 -06:00
Garret Rieger
19e1b698c5
[subset] Fix ubsan failure.
2023-04-18 13:21:46 -06:00
Garret Rieger
647b024784
[subset] Fix fuzzer issue https://oss-fuzz.com/testcase-detail/6521393809588224
2023-04-18 13:21:46 -06:00
Garret Rieger
8658c257c4
[subset] In LigatureSubst subsetting, check if the ligature glyph is in glyphset.
...
Otherwise coverage will not match the retained ligature sets.
2023-04-17 14:35:27 -06:00
Josef Friedrich
ac4c3b3e85
Fix typos in the source code docs
2023-04-17 12:21:05 -06:00
Garret Rieger
90356eb226
[subset] Note --no-layout-closure is only for GSUB.
2023-04-14 15:12:41 -06:00
Garret Rieger
14b9d8d534
[subset] add --no-layout-closure flag.
...
Disables layout glyph closure. Fixes #4192 .
2023-04-14 15:12:41 -06:00
Qunxin Liu
96ed20725c
[instancer] update bound metrics for CFF2 instancing
2023-04-05 17:27:11 -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
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
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
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
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
Khaled Hosny
e57defc07c
[justify] Set var_value when expanding/shrinking to max
...
When expanding/shrinking the buffer to max (and still not fitting), we
need to also set var_value to the axis max/min otherwise client not have
the correct axis value to draw with.
2023-03-03 09:20:29 -07:00