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
54ab8f0df4
[repacker] make repacker object ids stable.
...
Prior to this change the object id for a vertex in the repacker graph is it's position in the topological ordering. As a result after each sorting the object ids change. This decouples the topological sorting from the object id assignments. A separate ordering list is retained. This simplifies handling around object ids which no longer needs to account for them shifting, and improves performance by eliminating the step of reassigned link object ids after each sort.
2025-09-15 16:34:44 -06:00
Behdad Esfahbod
d6343fa3bf
[instancer/varstore] Update test expectations
2025-09-13 13:38:47 -06: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
Behdad Esfahbod
c9480db91b
[instancer/varstore] Add a heuristic to speed up optimization
2025-09-12 12:51:26 -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
Qunxin Liu
77d073044e
[subset] fix HVAR encoding width ( #5523 )
2025-09-02 15:40:51 -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
Qunxin Liu
cd49b14b4f
[subset] add more aggressive pruning for MarkLigPos and MarkMarkPos ( #5434 )
...
Remove lig/mark glyphs without defined anchor points after subsetting
2025-07-29 15:32:26 -06:00
Qunxin Liu
879c4ac784
[subset] MarkBasePos: remove base glyphs with empty base record
...
BaseRecord could become empty if all anchor offsets for retained mark
classes are null
2025-07-24 14:25:54 -07:00
Behdad Esfahbod
8eb2f07cc8
Merge branch 'main' into HVF
2025-05-26 13:23:08 -06: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
Behdad Esfahbod
a13fd9ae68
Merge branch 'main' into HVF
2025-05-21 12:23:19 -06:00
Behdad Esfahbod
eeabc29c69
[test/subset] Fix test-runner when ots is present
2025-05-17 11:24:51 -07: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
Behdad Esfahbod
de974288b6
Merge branch 'main' into HVF
2025-05-07 16:42:06 -06:00
Behdad Esfahbod
21a67df4c9
[run-tests.py] Clean up file descriptors
2025-05-06 15:42:48 -06:00
Behdad Esfahbod
aef3df5097
Merge branch 'main' into HVF
2025-04-20 00:37:24 -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
204cc5bcae
Merge branch 'main' into HVF
2025-04-07 14:11:11 -06:00
Behdad Esfahbod
f09c4d6dd8
[test/subset] Fix a regular expression
2025-04-06 15:54:21 -06:00
Behdad Esfahbod
1f0559392d
[test/subset] Massage more
2025-04-06 15:50:20 -06:00
Behdad Esfahbod
d8f00171d7
[test/subset] black
2025-04-06 15:33:25 -06:00
Behdad Esfahbod
cc065cf2e5
[test/subset] Better report passed tests
2025-04-06 15:33:08 -06:00
Behdad Esfahbod
c60067c675
[test/subset] See if this fixes CI
2025-04-06 15:25:58 -06:00
Behdad Esfahbod
6b2563fff1
Merge branch 'main' into HVF
2025-04-06 15:05:25 -06:00
Behdad Esfahbod
aa6a37de61
[test/subset] Port to TAP
2025-04-06 14:18:18 -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
Behdad Esfahbod
5194ec4758
[test/subset] Use --preprocess instead of --preprocess-face
...
The latter is obsolete and alias to the former.
2025-04-05 16:08:18 -06:00
Behdad Esfahbod
14ecea57c3
Merge branch 'main' into HVF
2025-03-27 15:44:49 -06:00
Behdad Esfahbod
4d2a362f84
[test/subset] Remove tempdir
...
Was creating a tempdir in /tmp for every single test item,
and not removing it. Create one per test file, and remove
if test successful.
2025-03-25 15:36:39 -06:00
Behdad Esfahbod
e7cd818e66
Merge branch 'main' into HVF
2025-03-22 15:31:00 -06:00
Behdad Esfahbod
e0aee5815a
[test] Respect MESON_EXE_WRAPPER in more test runners
...
It's not working for me though. Meson doesn't seem to set WINEPATH
during testing.
2025-03-22 14:56:37 -06:00
Behdad Esfahbod
19b4c6e559
[subset] "Fix" subset tests after recent fvar/avar precision changes
2025-03-02 17:00:17 -07: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
Behdad Esfahbod
134eef550d
[test] Reorder test suites
...
Makes it a bit faster.
https://github.com/harfbuzz/harfbuzz/issues/4153#issuecomment-2646120679
2025-02-09 08:26:11 +00: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
6fd76e1f67
[subset] offset format fix in gvar table
2024-09-17 15:23:43 -06:00
Alexander Grund
70334d74dc
Run subset tests with C-locale
...
One problematic input is `--instance=wdth=112.5` which is parsed using
the users local (`strtof`).
So while in C or US locales it yields 112.5 in some European locales it
yields 112 as the dot is not valid in this position.
A European user might pass "112,5" instead but for the test the C locale
is assumed, so enforce it.
Fixes #4854
2024-09-11 12:07:04 -06: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