Commit Graph
373 Commits
Author SHA1 Message Date
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
Khaled Hosny a38f853e83 Drop unused Makefile.sources files 2024-06-27 16:33:16 +03:00
Khaled Hosny cf1fdf1632 Drop autotools build
Fixes https://github.com/harfbuzz/harfbuzz/issues/4720
2024-06-27 15:28:38 +03:00
David Corbett 0db136b1b0 [subset-cff] Shorten output of encode_num_tp 2024-05-12 09:04:02 -07:00
Qunxin Liu 7975c9cabd [instancer] bug fix for COLRv1, add missing mapping to VarIdx::NO_VARIATION 2024-05-09 08:34:14 -07:00
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.
2024-05-08 10:23:31 -06:00
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
2024-05-06 13:22:49 -07:00
Qunxin Liu 3b3c154bd1 add back missing tests that were disabled when wrapped by experimental 2024-05-06 12:56:23 -07:00
Qunxin Liu 6c8985724e fix bots 2024-05-06 10:42:03 -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 f145ab2f1e Disable empty_region_vardata test when running on 32bit machines. 2024-05-03 18:31:18 +00:00
Garret Rieger 4cf606f674 [instancer] Promote partial instancing api out of experimental. 2024-05-02 21:22:18 +00: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