Khaled Hosny
a38f853e83
Drop unused Makefile.sources files
8 months ago
Khaled Hosny
cf1fdf1632
Drop autotools build
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4720
8 months ago
David Corbett
0db136b1b0
[subset-cff] Shorten output of `encode_num_tp`
10 months ago
Qunxin Liu
7975c9cabd
[instancer] bug fix for COLRv1, add missing mapping to VarIdx::NO_VARIATION
10 months ago
Garret Rieger
b74a7ecc93
Fix IUP differences accoss platforms.
...
- Slightly increase the tolerance to account for differences in floating point math across platforms.
- The specific issue is a fused multiply add (d = d1 + (x - x1) * scale; in hb-subset-instancer-iup.cc)
- Also fix more implicit double conversion warnings.
10 months ago
Qunxin Liu
a5c9c82692
rename expected files from *.retain-all-codepoint.* to *.all.*
...
This is to fix file name too long error
tar: harfbuzz-8.4.0/test/subset/data/expected/sync_vmetrics/playwrite_mm.subset.default.retain-all-codepoint.SPED=25,YEXT=520,wght=100-400,slnt=18.iup_optimize.ttf: file name is too long (cannot be split); not dumped
tar: Exiting with failure status due to previous errors
10 months ago
Qunxin Liu
3b3c154bd1
add back missing tests that were disabled when wrapped by experimental
10 months ago
Qunxin Liu
6c8985724e
fix bots
10 months ago
Qunxin Liu
f614a7d309
[instancer] add/update tests for COLRv1 instancing
10 months ago
Qunxin Liu
ebcdadbf54
[instancer] add tests for instantiating BASE table
10 months ago
Garret Rieger
f145ab2f1e
Disable empty_region_vardata test when running on 32bit machines.
10 months ago
Garret Rieger
4cf606f674
[instancer] Promote partial instancing api out of experimental.
10 months ago
Garret Rieger
2cfa55056c
[instancer] Switch to doubles for delta calculations.
...
FontTools uses double's internally so match FontTool's precision so we get the same results more often for floating point calculations.
10 months ago
Garret Rieger
6e87481731
[subset] add virtual links to keep the gdef varstore last.
11 months ago
Garret Rieger
7145607149
[subset] place the gdef var store at the end of the GDEF table.
...
It appears that some font processors assume it is the last sub table.
11 months ago
Garret Rieger
990fb14d78
[subset] Disable fonttools comparison in a few tests where rounding diffs show up.
...
Context: https://github.com/harfbuzz/harfbuzz/issues/4642
11 months ago
Garret Rieger
11f5dec75f
[subset] Move post apply mvar test intance position to avoid rounding diff.
11 months ago
Garret Rieger
975bd39b15
[subset] Match hb rounding to fonttools for avg char width.
...
Update Muli and Roboto input test fonts to recalc class values. FontTools recalcs class values during instancing while harfbuzz does not (like the ft subsetter).
11 months ago
Garret Rieger
15a05b2432
[subset] Update generate-expected-outputs to drop BASE.
...
This matches the behaviour of the test runner.
11 months ago
Garret Rieger
ec46c4c2e6
[subset] Update subset test suite to match some changes made to fonttools.
...
FontTools has added pruning functionality for code pages which we don't yet have in harfbuzz. Update our test runner to disable that for now. Also match fonttools and always recalc usFirst/LastCharIndex even if no prune unicode ranges is set.
11 months ago
Qunxin Liu
cfbb6a6872
[subset] support BASE table subsetting ( #4618 )
...
* [subset] support BASE table
* [subset] add tests for BASE table subsetting
12 months ago
Qunxin Liu
84771374e8
[instancer] add tests for iup delta optimization
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
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
Qunxin Liu
dd8d35766b
[instancer] enable partial instancing tests when experimental api is on
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
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
Garret Rieger
77a8155425
[subset] Add some basic tests for a provided glyph map.
2 years ago
Garret Rieger
e41f317199
[subset] Update expectation files for full_instance tests.
2 years ago
Garret Rieger
2175f5d050
[subset] Fix inefficient ItemVariationStore subsetting w/ retain_gids.
...
ItemVariationStore is relying on the assumption that the inner_map is populated for all output glyphs, this is not true for subsetting operations with retain gids enabled. Fixes fuzzer timeout: https://oss-fuzz.com/testcase-detail/4575222591520768 .
2 years ago
Garret Rieger
3db6baa20e
[subset] add test for lig glyph fix.
2 years ago