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.
10 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
Ozkan Sezer
dbecddb41c
tests, hb-test.h: define g_assert_false && g_assert_nonnull for old glib
...
Reference issue: https://github.com/harfbuzz/harfbuzz/issues/4577
Reference issue: https://github.com/harfbuzz/harfbuzz/issues/4624
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
Lie Yan
2da79f70a1
fix(test-ot-math.c): remove redundant lines
12 months ago
Christer Sandberg
1ab8822b41
Fixed some errors in STAT table implementation
1 year ago
Qunxin Liu
84771374e8
[instancer] add tests for iup delta optimization
1 year ago
Garret Rieger
ef1f5c4e0c
[subset] Re-use common Coverage subsetting function in PairPosFormat2.
...
Was using an identical but less efficient version. Fixes fuzzer test case: https://oss-fuzz.com/testcase-detail/6151390002806784
1 year ago
Lie Yan
c17d67467f
[ot-math] Fix a bug in MathKern::get_value()
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4542
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