Behdad Esfahbod
98353ecefe
[test] Run shape tests with C locale as well
...
https://github.com/harfbuzz/harfbuzz/pull/4857
5 months ago
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
5 months ago
Qunxin Liu
634778efc0
[subset] bug fix in post table
...
insert retain-gid holes when retain-gids is enabled
6 months ago
Qunxin Liu
72502ef02b
[instancer] dont return false when variation data is empty after partial instancing
6 months ago
Behdad Esfahbod
59a97ac02e
[test] More get_table_tags test
7 months ago
Behdad Esfahbod
a55b007144
[test] Add get_table_tags test for hb-coretext
7 months ago
Behdad Esfahbod
bd79bfb653
[test] Add get_table_tags test for hb-ft
7 months ago
Behdad Esfahbod
a459753ef9
[test] Test get_table_tags of face_builder
7 months ago
Behdad Esfahbod
8896b1d57a
[test] Add test for get_table_tags
...
So far just tests the default implementation.
7 months ago
Behdad Esfahbod
84f165646e
[test] Move code around
7 months ago
Behdad Esfahbod
22e1a5a785
[test-paint] Fix warnings
7 months ago
Behdad Esfahbod
191c6eedf3
Fix Linux bot
7 months ago
Behdad Esfahbod
e0c3cbf16c
[subset] Fail if source face has no glyphs
...
Also return nullptr if any of the input pointers are nullptr.
Before we were returning the empty face.
Fixes https://github.com/harfbuzz/harfbuzz/issues/4824
7 months ago
Behdad Esfahbod
788b469ad5
[ChainContext] Fix fast-path deviation from slow path
...
See comments. The input skippy was hitting the U+200D and NOT
seeing it skippable, whereas the context skippy would had.
Fixes https://github.com/harfbuzz/harfbuzz/issues/4813
7 months ago
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
Behdad Esfahbod
49c8493f5c
[test] Build with HB_MINI
...
Also add CONFIG.md instructions for building configs with meson.
Fixes https://github.com/harfbuzz/harfbuzz/issues/4760
8 months ago
ssmid
106e4068b9
HB_SCRIPT_CANADIAN_ABORIGINAL removed, as deprecated
8 months ago
ssmid
8de7e9fdb1
deprecation cleanup: HB_BUFFER_FLAGS_DEFAULT removed
8 months ago
Behdad Esfahbod
1e2bd4983e
Another include fix
...
https://github.com/harfbuzz/harfbuzz/issues/4740#issuecomment-2148910890
9 months ago
Behdad Esfahbod
e9870e8d54
Add missing include
...
https://github.com/harfbuzz/harfbuzz/issues/4740#issuecomment-2148727072
9 months ago
Behdad Esfahbod
9456f6bdfa
[test] Fix a few compiler warnings
9 months ago
David Corbett
c2b5b7b9ca
[ot-tags] Update IANA and OT language registries
9 months ago
Khaled Hosny
135d6537d9
test-draw-varc.c: Fix “warning: unused function”
9 months ago
Garret Rieger
0660a4d408
[subset] fix fuzzer found heap use after free in BASE subsetting.
9 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
Behdad Esfahbod
ba1f194a1d
[gsubgpos] Reduce stack use in recursion
10 months ago
Garret Rieger
4cf606f674
[instancer] Promote partial instancing api out of experimental.
10 months ago
Behdad Esfahbod
6129c72619
[varc] Use Condition instead of ConditionSet
...
With more Condition formats.
df7dcc4618
https://github.com/harfbuzz/boring-expansion-spec/issues/147
10 months ago
Behdad Esfahbod
d07d70aef1
[varc] Add test
10 months ago
Behdad Esfahbod
1121d80b3f
[varc] Add a conditional test font
10 months ago
Behdad Esfahbod
7c8743546f
[varc] Implement conditionSets
10 months ago
Behdad Esfahbod
3ffd92f096
[varc] Add a couple of seeds for the fuzzer
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
c84acc8e07
[subset] Fix fuzzer found memory leak.
...
Fixes https://oss-fuzz.com/testcase-detail/6159925345583104 .
11 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