Qunxin Liu
85deddb16e
[subset] fuzzer fix: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40406
3 years ago
Qunxin Liu
8c583db9b5
[subset] COLRv1: update subset() method for new strutc ClipList and VarIdxMap
...
Also fix issues in struct PaintTransform definition
3 years ago
David Corbett
8eaee2f887
[USE] Only skip default ignorables within CCSes
3 years ago
Garret Rieger
79937d24b7
[repacker] Add repacker test that requires space splitting.
3 years ago
Khaled Hosny
bb57df7a4f
[test] Add test for https://github.com/harfbuzz/harfbuzz/issues/2757#issuecomment-933531978
3 years ago
Khaled Hosny
1624550377
[test] Add test for https://github.com/harfbuzz/harfbuzz/issues/3244
3 years ago
Qunxin Liu
794b00db4b
[subset] fuzzer fix: https://oss-fuzz.com/testcase-detail/6616166961905664
3 years ago
Garret Rieger
d5beb96e06
[repacker] add repacker isolation test on real font.
3 years ago
Qunxin Liu
ca7b9daef0
[subset] subset MATH table
3 years ago
Garret Rieger
c2cc566c9d
[subset] Fix subset_offset_array adding unused space to serializer.
...
ArrayOf.serialize_append allocates space for the new item, but ArrayOf.pop() does not recover the allocated space. So in the case where the revert path was entered the extra space added by serialize_append gets left in the serialization buffer. This moves the snapshot to before ArrayOf.serialize_append is called so that revert cleans up the buffer extend.
3 years ago
Qunxin Liu
8c5c81746d
[subset] fix find_duplicate_features
...
We should check each feature against all other features with the same
tag for duplicates.
3 years ago
Garret Rieger
74f96d9d4b
[repacker] fix heap use after free in repacker.
...
Don't store a reference to the link in overflow records as the link object may be freed if the sorted graph vector is resized.
3 years ago
Garret Rieger
d700646c33
[subset] In preperation for 3.0.0 release remove legacy subsetting api methods.
3 years ago
David Corbett
a0101a31b5
[Unicode 14] Add tests
3 years ago
Khaled Hosny
4d9b7de0b6
[style] Prepare for release
3 years ago
Behdad Esfahbod
201cbe3c66
[style] Rename HB_STYLE_TAG_SLANT to HB_STYLE_TAG_SLANT_ANGLE
4 years ago
Qunxin Liu
37379f8f7d
[subset] fox for (Chain)ContextFormat3: subset lookupRecord
...
skip copying a lookupRecord if lookup referenced in the lookupRecord is
not retained after subset
4 years ago
Khaled Hosny
9fddbb3e24
[test] Rename test and split into smaller subtests
4 years ago
Khaled Hosny
c6bb719e65
[test] Add tests for Arabic decomposition
...
Test that both NFC and NFD input produces identical results for fonts
that used composed fonts internally (Amiri here) and fonts that
decompose internally (Noto Nastaliq Urdu here) and that for the former
composed forms are used.
See https://github.com/harfbuzz/harfbuzz/issues/3179
4 years ago
Khaled Hosny
a9dc4fbeac
[test] Make shape test names match file names
...
No idea why test names are underscorified but it it just makes calling
meson test testname harder than it should being not able to copy file
name directly.
4 years ago
Garret Rieger
102666dab7
[subset] add test for hb_subset_input_set (...).
4 years ago
Behdad Esfahbod
955f86a034
[test-set] Fix compiler warnings
4 years ago
Garret Rieger
f2441a4b65
[subset] Remove retain all layout features flag.
...
Instead use inverted sets to handle requesting all features. Modifies feature collection in subset plan to intersect the set of requested features against the features in the font. This prevents iterating a fully filled feature tag set.
4 years ago
Garret Rieger
f84daccb4f
[set] include null pool sets in the permutations tested by inverted_operations.
4 years ago
Garret Rieger
fb07f8f876
During subset input creation check for set alloc failures and fail if encountered.
4 years ago
Khaled Hosny
33bfe9edd6
[test] Add tests for item context
...
Test pre-context and post-context in Arabic shaper, as well as
interaction of pre-context with BOT flag.
4 years ago
Qunxin Liu
34e0b28fae
[subset] make glyph-names option match fonttools behavior
...
Don't encode psNames that are contained in standard glyph names set
4 years ago
Garret Rieger
915550ab19
[set] remove inverted test TODO.
4 years ago
Garret Rieger
c4ed582997
[set] add test for inverted set operations.
...
This test checks all possible set configurations against each operation type.
4 years ago
Garret Rieger
325fd6ddb8
[set] add tests for inverted set equality.
4 years ago
Garret Rieger
287032af6c
[set] update set test TODO list.
4 years ago
Garret Rieger
5c003d80a6
[set] add tests for inverted previous iteration.
4 years ago
Garret Rieger
3f2cc582f2
[set] add basic and iteration set inverion tests.
4 years ago
Garret Rieger
dc31920bbe
Don't serialize null offsets in CPAL.
...
Fixes https://oss-fuzz.com/testcase-detail/5443213648330752
4 years ago
Garret Rieger
cb05c363d7
[subset] add some basic tests for the legacy subset methods.
4 years ago
Garret Rieger
44802c8ec4
[subset] use layout-features=* for layout subsetting tests w/ synthetic test fonts.
4 years ago
Garret Rieger
c0f3af91b8
[subset] speed up add_gid_and_children and adjust op limit.
...
Fix for fuzzer timeout: https://oss-fuzz.com/testcase-detail/5001604901240832 .
- Operation limit is per glyph, so 100,000 should still be far more than needed.
- Switches from for(...) to while(...) loop for iteration. for(...) calls it.end() which in this case triggers a complete iteration.
- Cache CompositeGlyph size in the iterator to avoid needing to recalculate it.
4 years ago
Behdad Esfahbod
23282c9c9d
[util/hb-subset] Support ranges in --unicodes / --unicodes-file
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3109
4 years ago
Behdad Esfahbod
58bfe40794
[util] Move hb-subset away from main-font-text
4 years ago
Khaled Hosny
43722cc9f4
[test] Add some real reverse sub tests
4 years ago
Behdad Esfahbod
e0d7060f80
[test] Rename shaping/ to shape/
4 years ago
Khaled Hosny
f122698810
[test] Improve generate-expected-outputs.py diff output
4 years ago
Khaled Hosny
6ac6a2b27b
[test] hb_ot_layout_language_get_feature_tags()
4 years ago
Khaled Hosny
e9b743b26d
[test] hb_ot_layout_script_get_language_tags()
4 years ago
Khaled Hosny
bf438b815f
[test] hb_ot_layout_table_get_feature_tags()
4 years ago
Khaled Hosny
2f88ea5a20
[test] hb_ot_layout_table_find_script()
4 years ago
Khaled Hosny
f60caad7ff
[test] hb_ot_layout_table_get_script_tags()
4 years ago
Garret Rieger
c08f1b8903
[map] fix incorrect population count in hash map.
...
If the same key was set twice the population was being incorrectly incremented.
4 years ago
Garret Rieger
e39c3bde7b
[subset] fix bug in parsing glyf flags.
...
the bytes of the flag stream were being treated as signed integers instead of unsigned as specified in the spec.
4 years ago
Behdad Esfahbod
f3acb977ec
[test/shaping;util] Use ';' instead of ':' to separate test fields
...
Accept that in --batch mode. Also in batch mode don't send the 0th arg.
Related discussion: https://github.com/harfbuzz/harfbuzz/pull/3102
4 years ago