Behdad Esfahbod
19f54f2cfd
Merge pull request #5784 from harfbuzz/downgrade-cff-hintmask
...
[subset] Fix CFF2->CFF1 specializer hintmask encoding
2026-03-04 12:55:54 -07:00
Qunxin Liu
1c0a3a14d3
[subset] fix padding in gvar table
...
Add necessary padding if original font is using long format and
subsetted font is using short format
2026-01-20 14:47:54 -08:00
Qunxin Liu
cf31e7ac4e
[instancer] support full instancing for avar2 ( #5676 )
2025-12-11 10:54:49 -07:00
Qunxin Liu
0952bc0ac2
[subset] de-duplicate features ( #5494 )
2025-09-26 12:10:28 -04:00
Garret Rieger
aa58b43de4
[subset] Introduce HB_SUBSET_FLAGS_RETAIN_NUM_GLYPHS. ( #5547 )
...
Used in conjunction with retain gids, when set the num glyphs from the input font will be preserved. Empty glyphs will be inserted as necessary to maintain the num glyphs value. Put under experimental for now.
2025-09-12 14:24:41 -06:00
Garret Rieger
6dadd8461f
Re-disable fonttools comparison for update_def_wght.tests
2025-09-12 12:38:22 -06:00
Behdad Esfahbod
0f1dab0f93
[instancer/varstore] More gain_from_merging optimization ( #5543 )
...
* [instancer/varstore] More gain_from_merging optimization
* [tests] Re-enable a test that was disabled until an issue fixed
See comment.
2025-09-12 11:43:21 -06:00
Khaled Hosny
b7c55efe0d
[subset] Fix shaping behaviour when pruning empty mark sets
...
See https://github.com/harfbuzz/harfbuzz/issues/5499
2025-08-26 00:45:26 +03:00
Garret Rieger
fac64e5838
[instancer] add a test which checks calculation of vmtx tsb during CFF2 instancing.
2025-05-23 12:47:23 -06:00
Garret Rieger
3e122d9df9
Disable OTS on the cmap4 overflow test case.
...
The test file has been stripped of most tables to avoid checking in a very large font (since it has a high number of codepoints), which causes OTS to fail on missing required tables.
2025-05-16 11:08:00 -07:00
Garret Rieger
4e76727183
Add a test checks we can recover from cmap4 overflow.
2025-05-15 10:05:18 -06:00
Garret Rieger
efcb7d3de1
[subset] close unicodes over bidi mirror variants during subsetting.
...
Fixes #5281 . Does the closure by default, but I've introduced a new flag and option to disable this behaviour since some users may want to get the minimal set if they know they don't need the mirrored variants.
2025-04-11 18:13:28 -06:00
Behdad Esfahbod
e5541a0b63
[subset/test/cmap14] Reduce tested combinations
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/5254
2025-04-05 17:02:31 -06:00
Behdad Esfahbod
d65fa93440
[subset/test/basics.tests] Reduce tested combinations
2025-04-05 16:58:06 -06:00
Garret Rieger
ea1434b897
Split iup glyf partial instance tests into a separate set which ignores due to IUP rounding differences fonttools.
2025-02-25 19:02:11 +00:00
Behdad Esfahbod
9a0cf8d641
[test/subset/cff-japanese] Shrink test
...
Was taking too long.
2025-02-25 00:19:25 -07:00
Behdad Esfahbod
084fb3ab4f
[test/subset/cmap] Shrink test
...
Was taking more than the rest of the test suite combined.
2025-02-25 00:16:27 -07:00
Garret Rieger
b0d52abe97
[subset] consider variation selectors subsetting cmap14
...
cmap14 subsetting code was not considering variation selectors in the input unicode set when deciding which variant glyphs to keep. This updates subsetting to only keeps variant glyphs if their variation selector code point is in the input unicodes set.
For https://github.com/harfbuzz/harfbuzz/issues/4911
2024-11-11 13:45:08 -07:00
Qunxin Liu
622e9c33c3
[instancer] fix for incorrect offset calculation when we have gvar padding
2024-11-06 12:38:00 -07:00
Qunxin Liu
634778efc0
[subset] bug fix in post table
...
insert retain-gid holes when retain-gids is enabled
2024-08-21 12:06:02 -06:00
Qunxin Liu
72502ef02b
[instancer] dont return false when variation data is empty after partial instancing
2024-08-12 15:51:13 -06:00
Qunxin Liu
7975c9cabd
[instancer] bug fix for COLRv1, add missing mapping to VarIdx::NO_VARIATION
2024-05-09 08:34:14 -07:00
Qunxin Liu
f614a7d309
[instancer] add/update tests for COLRv1 instancing
2024-05-06 10:41:07 -07:00
Qunxin Liu
ebcdadbf54
[instancer] add tests for instantiating BASE table
2024-05-03 17:22:16 -05:00
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.
2024-04-15 16:06:19 -06:00
Garret Rieger
990fb14d78
[subset] Disable fonttools comparison in a few tests where rounding diffs show up.
...
Context: https://github.com/harfbuzz/harfbuzz/issues/4642
2024-03-28 17:00:12 -06:00
Garret Rieger
11f5dec75f
[subset] Move post apply mvar test intance position to avoid rounding diff.
2024-03-28 17:00:12 -06:00
Qunxin Liu
cfbb6a6872
[subset] support BASE table subsetting ( #4618 )
...
* [subset] support BASE table
* [subset] add tests for BASE table subsetting
2024-03-14 18:33:34 -06:00
Qunxin Liu
84771374e8
[instancer] add tests for iup delta optimization
2024-01-26 15:51:49 -08:00
Qunxin Liu
f1ac36ba7f
[instancer] update hhea vertical metrics with OS/2 ones
2023-11-15 13:25:43 -07:00
Qunxin Liu
2d001a0adc
[subset] OTS doesn't allow ligature attachment offset to be 0
2023-11-08 14:10:06 -07:00
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 https://github.com/skef/harfbuzz/commit/3ae2fe2084d96f61d8ad1bbe42a6ef4e62ec830a rebased onto head w/ tests added.
2023-11-06 16:49:09 -07:00
Qunxin Liu
6baf791e6f
[instancer] add tests
2023-11-03 11:06:07 -07:00
Qunxin Liu
31b5b2b1d7
[instancer] add tests for valueformat
2023-11-03 10:27:33 -07:00
Qunxin Liu
413af0a9b2
[instancer] When partial instancing, subset LigCaretList after VarStore instantiation
2023-11-03 10:24:56 -06:00
Qunxin Liu
f6f35f73bc
[instancer] add tests for feature variations partial instancing
2023-10-30 12:31:49 -06:00
Qunxin Liu
57dac23d79
[instancer] add tests
...
Also update tests to gei rid of no-tables-with-item-variations profile
2023-10-18 08:07:26 -06:00
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.
2023-10-10 17:59:05 -06:00
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
2023-09-18 12:20:36 -07:00
Qunxin Liu
7b5daff5eb
[instancer] add tests for mvar partial instancing
2023-09-18 12:20:36 -07:00
Qunxin Liu
77b158c72d
[instancer] add tests for gvar partial instancing
2023-08-07 16:02:02 -07:00
Garret Rieger
77a8155425
[subset] Add some basic tests for a provided glyph map.
2023-05-04 23:01:56 +00:00
Behdad Esfahbod
1d31da91ce
Merge pull request #4205 from harfbuzz/gvar-optimize
...
Gvar optimize
2023-04-25 15:34:06 -06:00
Garret Rieger
e41f317199
[subset] Update expectation files for full_instance tests.
2023-04-25 20:54:27 +00:00
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 .
2023-04-24 18:11:48 -06:00
Garret Rieger
3db6baa20e
[subset] add test for lig glyph fix.
2023-04-17 14:35:27 -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
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
Qunxin Liu
ab87d7d225
[instance] add tests for colrv1 full instancing
2023-03-21 11:51:58 -06:00