Garret Rieger
16f61a1c87
[repacker] only build repacker fuzzer when experimental api is enabled.
2 years ago
Garret Rieger
de5a621322
[repacker] enforce root node having no incoming edges.
2 years ago
Garret Rieger
30e405e470
[repacker] ensure link obj indices are valid.
2 years ago
Garret Rieger
554ed06fac
[repacker] add cycle detection to the graph sort.
...
This allows us to bail early if the graph is not acyclic.
2 years ago
Garret Rieger
9e99d08470
[repacker] validate link widths during repacker setup.
2 years ago
Garret Rieger
edf7a29595
[repacker] Validate link positions before running the repacker.
2 years ago
Garret Rieger
88d437525f
[repacker] add test for repacker fuzzer.
2 years ago
Garret Rieger
6627a1ab45
[repacker] Add a initial seed for the fuzzer repacker.
2 years ago
Garret Rieger
deca30b268
[repacker] get repacker fuzzer working.
...
Additionally add helper method that allows a graph to be saved as a fuzzer seed.
2 years ago
Garret Rieger
261a605f9c
[repacker] verify graph is a dag before using the fuzzer input.
2 years ago
Garret Rieger
985b19f678
[repacker] begin implementing a fuzzer for the repacker api.
2 years ago
Garret Rieger
64e8707eca
[subset] don't use hb repacker when generating test files from fonttools.
2 years ago
Garret Rieger
ff3cac0ccd
[subset] Fix unecessary trailing 0 bytes left by ContextFormat2 pruning.
...
Uneeded rules where beind removed from the count by the bytes for them was being left in the font.
2 years ago
Garret Rieger
dd1ba328a8
[repacker] fix fuzzer timeout.
...
For https://oss-fuzz.com/testcase-detail/5845846876356608 . Only process the set of unique overflows.
2 years ago
Behdad Esfahbod
527823ccac
[unicode] Destroy user_data in set_funcs fail paths
...
This is what the font_funcs / draw_funcs do.
2 years ago
Qunxin Liu
6314aa7da4
[subset] add an experimental API that can override name strings for specified name_id
2 years ago
Behdad Esfahbod
f53ef69d59
[indic] Order left-matras inside-out
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3863
2 years ago
Garret Rieger
2822b589bc
[subset] Include instancing tests in distribution.
...
Automatically enable them when the experimental api is enabled.
2 years ago
Qunxin Liu
8a5524833c
[instance] update OS2/.usWeightClass and .usWidthClass when
...
no-prune-unicode-ranges option is enabled
2 years ago
Behdad Esfahbod
e854739b2d
[fuzzing] Add test font for previous commit
2 years ago
Garret Rieger
db22bfb3cc
[subset] Remove Franklin from the tests which is not an open source font.
2 years ago
Garret Rieger
3394ec7048
[subset] use subset accelerator in tests.
...
This ensures it produces equivalent subsets as without the accelerator.
2 years ago
Qunxin Liu
d5fc4a73c0
[instance] add tests for featureVariations
...
Also updated the script that is used to generate tests.With fonttools,
we now do instancing first and then subsetting.
With different order of subsetting and instancing operations on the same
VF file, fonttools seems to generate 2 different font files with different
glyph set.
1. do subsetting and then instancing: this seems result in a larger glyph
set in the font file. Lookups are collected from both retained features
and all possible alternate featurevariations, this leads to a larger
glyph set after glyph closurei. And instancer doesn't redo glyph
closure, it does lookups pruning only.
2. do instancing and then subsetting: lookups are collected from
features that are replaced already and possible alternate feature
variations
2 years ago
Jonathan Kew
21b0e59414
[aat] Add test for rlig-to-aat feature mapping in Geeza Pro.
2 years ago
David Corbett
09b9a1ffdd
[USE] Allow ZWNJ at the end of a cluster
2 years ago
Qunxin Liu
470944901f
[instance] add benchmarks for instancing
3 years ago
Qunxin Liu
88c02e0024
[instance] add tests for full instancing
...
Also update previous tests with GDEF/GPOS tables
3 years ago
David Corbett
ade87e1538
[Unicode 15] Add tests
3 years ago
David Corbett
e93c2d1309
[Unicode 15] Update the emoji table & cluster test
3 years ago
David Corbett
d0c32c5a0e
[Unicode 15] Update the UCD table
3 years ago
Qunxin Liu
f887ee0c67
[instance] update post.italicAngle
...
Add tests for instancing glyf/hmtx
3 years ago
Behdad Esfahbod
4ab7e579cb
Make HB_BORING_EXPANSION opt-in instead of opt-out
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3757
3 years ago
Qunxin Liu
7fde6ab025
fuzzer fix: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=49790
3 years ago
Khaled Hosny
afe6629b2f
Fix make dist
3 years ago
Behdad Esfahbod
e68e874da6
Update test/fuzzing/README
3 years ago
Behdad Esfahbod
fc9e6ae8d9
[run-tests.py] Write out the failing test
3 years ago
Behdad Esfahbod
56a5bc3bd0
[emoji] Regenerate test data
...
Fix generator.
3 years ago
Garret Rieger
f3aff45e04
[repacker] Update call to hb_subset_repack_or_fail in tests.
3 years ago
Behdad Esfahbod
bdbb8c297e
Add test for previous commit
3 years ago
Behdad Esfahbod
e2cc34e190
[subset/GPOS] Fix a fuzzer timeout test
...
Fixes https://oss-fuzz.com/testcase-detail/5234369031176192
3 years ago
Behdad Esfahbod
1945b400da
[cpluscplus] Wrap hb-subset types as well
...
Also changes signature of get_user_data of hb.h types to take const
object. This is safe.
3 years ago
Behdad Esfahbod
4cb83967aa
[subset/ClassDefFormat2] Fix timeout
...
Fixes https://oss-fuzz.com/testcase-detail/5417800474165248
3 years ago
Behdad Esfahbod
32c85b8c8c
[avar2] Fix mapping when coords length don't match
...
Ouch.
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=49407
3 years ago
Behdad Esfahbod
9eab3ac72d
[CoverageFormat2] Remove hand-written loop
...
While on a fuzzer-found test case (added) that loop was faster,
on real fonts, including NotoNastaliq in our benchmark, it was
actually slower, which intuitively I would have expected.
Still no idea why on that fuzzer case it's faster though. :(
3 years ago
Behdad Esfahbod
7050021fed
[cursive-positioning.tests] Fix test specification
...
Still failing. Figuring out.
3 years ago
Behdad Esfahbod
42f1d7794b
Add tests for multiple cursive positioning
...
From https://github.com/harfbuzz/harfbuzz/issues/2469
3 years ago
Qunxin Liu
f1a69ff1b9
[instance] update scripts for testing instancing
3 years ago
Behdad Esfahbod
3c84aa8416
[cff] Add a max work counter
...
Set to 10,000 per interpretation right now.
Fixes https://github.com/harfbuzz/harfbuzz/issues/3700
Fixes https://oss-fuzz.com/testcase-detail/5667125715927040
3 years ago
Behdad Esfahbod
a5dad50072
[aat/morx] Add test for previous commit
...
https://github.com/harfbuzz/harfbuzz/issues/1373
3 years ago
Behdad Esfahbod
a2f0723148
[GPOS] Adjust mark attachment on multiple substitution some more
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1545
3 years ago