Christer Sandberg
1ab8822b41
Fixed some errors in STAT table implementation
1 year ago
Qunxin Liu
84771374e8
[instancer] add tests for iup delta optimization
1 year ago
Garret Rieger
ef1f5c4e0c
[subset] Re-use common Coverage subsetting function in PairPosFormat2.
...
Was using an identical but less efficient version. Fixes fuzzer test case: https://oss-fuzz.com/testcase-detail/6151390002806784
1 year ago
Lie Yan
c17d67467f
[ot-math] Fix a bug in MathKern::get_value()
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4542
1 year ago
Qunxin Liu
df735213a8
[instancer-solver] port solver fix ( #4519 )
...
* [instancer-solver] port solver fix
from https://github.com/fonttools/fonttools/pull/3374
1 year ago
Qunxin Liu
f1ac36ba7f
[instancer] update hhea vertical metrics with OS/2 ones
1 year ago
Qunxin Liu
2d001a0adc
[subset] OTS doesn't allow ligature attachment offset to be 0
1 year ago
Garret Rieger
9701b0024e
[subset] Always place CFF1/2 char strings at the end of the packed table.
...
Makes the behaviour from HB_SUBSET_FLAGS_IFTB_REQUIREMENTS the default.
1 year ago
Garret Rieger
c6884377ec
[subset] Add HB_SUBSET_FLAGS_IFTB_REQUIREMENTS flag.
...
When enabled the output subset conforms to the requirements for a base font to be patched by IFTB patches. IFTB is a proposed incremental font transfer patch. This new flag is set as experimental. Currently, setting this flag causes the output subset to also use long offsets for outline data in loca/glyf, gvar, CFF, and CFF2.
This change is a version of 3ae2fe2084
rebased onto head w/ tests added.
1 year ago
Qunxin Liu
d550e16acc
[instancer] Recalc avgcharwidth after instancing
1 year ago
Qunxin Liu
6baf791e6f
[instancer] add tests
1 year ago
Qunxin Liu
31b5b2b1d7
[instancer] add tests for valueformat
1 year ago
Qunxin Liu
413af0a9b2
[instancer] When partial instancing, subset LigCaretList after VarStore instantiation
1 year ago
Qunxin Liu
f6f35f73bc
[instancer] add tests for feature variations partial instancing
1 year ago
Qunxin Liu
e595fe75cc
fix bots
...
partial instancing tests are wrapped by experimenal_api, do not enable
them in Makefile
1 year ago
Qunxin Liu
ce46698929
[subset] update tests
...
to reflect changes in GDEF.MarkGlyphSetsDef and Lookup.MarkFilteringSet
1 year ago
Qunxin Liu
bde6fb83ea
add missing file for test empty_region_vardata
1 year ago
Qunxin Liu
57dac23d79
[instancer] add tests
...
Also update tests to gei rid of no-tables-with-item-variations profile
1 year ago
Garret Rieger
bbd53fcfa4
Remove glyph_map test that uses retain gids.
...
We no longer allow the use of glyph map + retain gids (see: https://github.com/harfbuzz/harfbuzz/blob/main/src/hb-subset-plan.cc#L817 ). Also add the test to the meson file so it will be run by default.
1 year ago
Khaled Hosny
6e06a193b3
Add some tests for hb_feature_[from|to]_string()
1 year ago
Garret Rieger
333946b00e
[subset] Fix fuzzer timeout.
...
Fixes https://oss-fuzz.com/testcase-detail/5458896606855168 . Limit iteration over coverage in MarkLigPosFormat1 subsetting to the number of glyphs in the liga array.
1 year ago
Qunxin Liu
9ceb800ac2
fuzzer fix https://oss-fuzz.com/testcase-detail/5842152921628672
...
Access TupleVariationData through blob, because we don't sanitize
var_data
1 year ago
Qunxin Liu
2415d5f239
[instancer] update tests to include GDEF/GPOS tables
1 year ago
Qunxin Liu
ef4ff1d6a4
[instancer] make varstore items sorting method match fonttool's
...
Also update expected tests
1 year ago
Qunxin Liu
2d2818c096
[instancer] update expected tests to include HVAR/VVAR tables
1 year ago
Qunxin Liu
6e49128afd
[instancer] always check and update default wght/width/slnt if necessary
...
Sometimes default values in original file are incorrect, and if default value for an axis is not changed, then these values won't be updated
1 year ago
Qunxin Liu
7b5daff5eb
[instancer] add tests for mvar partial instancing
1 year ago
David Corbett
c459b8a51a
[Unicode 15.1] Add tests
1 year ago
David Corbett
c03e4c10a4
[Unicode 15.1] Update emoji table and cluster test
1 year ago
Qunxin Liu
fd3eb2c672
fuzzer fix: https://oss-fuzz.com/testcase-detail/6032126569742336
1 year ago
Garret Rieger
a1f034eaac
[repacker] fix fuzzer failure.
...
Fixes: https://oss-fuzz.com/testcase-detail/6490945267564544
1 year ago
Qunxin Liu
dd8d35766b
[instancer] enable partial instancing tests when experimental api is on
2 years ago
Garret Rieger
ca906e8747
[repacker] fix fuzzer timeout.
...
Corrects some mistakes in the handling of incoming_edges_ when memory allocation failures happen.
2 years ago
Qunxin Liu
bea26446d2
[instancer] reference all points for gvar
...
If a point is not referenced and delta is not inferred, set delta to 0
2 years ago
Behdad Esfahbod
0c80aec10b
[COLR] Move cycle-detection to the renderer instead of cairo
...
Alternative fix for https://github.com/harfbuzz/harfbuzz/issues/4375
2 years ago
Behdad Esfahbod
7d7541e35d
[test-paint] Print paint-color-glyph
2 years ago
Behdad Esfahbod
47231bdc70
[COLR/cairo/ft] Fixups to paint-color-glyph and implement for hb-ft
2 years ago
Behdad Esfahbod
58effbcc4f
.
2 years ago
Behdad Esfahbod
483bc0a384
[arabic/stch] Center the stretched group over the digits
...
Mostly relevant when there's one digit only.
https://github.com/harfbuzz/harfbuzz/issues/4369#issuecomment-1670361856
2 years ago
Behdad Esfahbod
9daef6ed4e
[arabic] Add test for previous commit
2 years ago
Qunxin Liu
0aa5dafefd
fix bots.
...
-Also disable partial instancing tests for now, cause the command option
is wrapped by experimental_api
2 years ago
Qunxin Liu
77b158c72d
[instancer] add tests for gvar partial instancing
2 years ago
Behdad Esfahbod
5b337130e2
Add test for previous commit
2 years ago
Behdad Esfahbod
94d4283b12
[graph] Handle a malloc fail
...
Fixes https://oss-fuzz.com/testcase-detail/4579249263345664
2 years ago
Behdad Esfahbod
202888ec3e
Fix mac bot
...
I think the new unsafe-to-concat is correct...
2 years ago
Behdad Esfahbod
f19ca24a8e
Revert "Revert "Require numerator and denominator in auto fraction""
...
This reverts commit 8fe506e153
.
2 years ago
Behdad Esfahbod
8fe506e153
Revert "Require numerator and denominator in auto fraction"
...
This reverts commit f3e86937df
.
2 years ago
David Corbett
f3e86937df
Require numerator and denominator in auto fraction
2 years ago
Behdad Esfahbod
997986ab30
[subset/hvar] Error handling
...
Fixes https://oss-fuzz.com/testcase-detail/5029952234586112
2 years ago
Behdad Esfahbod
c8f6ae1df7
[subset/hvar/retaingids] Synthesize a DeltaSetIndexMap if needed
...
Before we were emitting the entire VarStore rows if advMap
was Null. Instead, synthesize an advMap.
20% speed up in subset_glyphs/SourceHanSans-VF.otf/retaingids benchmark.
2 years ago