Michiharu Ariza
2e6038a209
add api tests for subset gvar & HVAR; bug fixes
6 years ago
Michiharu Ariza
aeddb30f87
replaced tt var api test with a composite glyph
...
for better coverage
6 years ago
Michiharu Ariza
9d3a252030
add api test for tt var advance widths
...
stripped HVAR from SourceSansVariable-Roman.abc.ttf so glyf gets parsed
6 years ago
Michiharu Ariza
434ea06841
fix tt var extents & add test
6 years ago
Ebrahim Byagowi
8aaab78efc
Allow zero length ranges in sanitization ( #1617 )
...
Fixes fvar table sanitization where there are no named instance
by allowing zero length ranges starting from Null() address.
Fixes #1607
6 years ago
Michiharu Ariza
e2856c2d85
retain FDSelect & FDArray with --retain-gids
...
so in sync with fonttools behavior
6 years ago
Michiharu Ariza
c12862657f
added desubroutinize & retain-gids full test cases with CFF fonts
...
and CFF retain-gids fixes
6 years ago
Michiharu Ariza
f2908b4d8f
Implement subset --regain-gids option with CFF1/2
...
along with api tests & expected results
6 years ago
Garret Rieger
ccc59dc612
[subset] Add unit test for glyf subsetting and retain gids.
6 years ago
Ebrahim Byagowi
01f628cf55
[aat] Expose hb_aat_layout_has_tracking API
6 years ago
Ebrahim Byagowi
b791bbbae4
[feat] Apply @jfkthame reviews
6 years ago
Michiharu Ariza
b67a7c731f
drop dotsection as hint along with test case
6 years ago
Michiharu Ariza
072c7aba92
use 2-byte offset instead of 4-byte for local subrs
...
more than enough since local subrs immediately follow its corresponding private dict, as the result 2-byte redunction for each font dict with local subrs
updated api test expected subset fonts accordingly
6 years ago
Michiharu Ariza
3787c07856
Implemented seac for extents & subset along with API tests
6 years ago
Ebrahim Byagowi
b986fead0a
Hook AAT's lcar to _get_ligature_carets
6 years ago
Michiharu Ariza
0996c0ff62
implented no-desubroutinize with CFF2 along with API test
...
replaced AdobeVFPrototype.abc.otf with a hinted (maually) & subroutinized copy
replaced expected results as well
6 years ago
Ebrahim Byagowi
b8a78ce201
[BASE] Improvements ( #1347 )
6 years ago
Michiharu Ariza
34b06d994a
fixed FDSelect size calcluation
6 years ago
Michiharu Ariza
1bc710a8c9
added CFF1 desubr api test cases & bug fixes
6 years ago
Ebrahim Byagowi
143ffe65aa
[fuzz] Add a new testcase
6 years ago
Michiharu Ariza
be746009e9
dropped support of legacy CFF CharString ops
...
along with test & font
6 years ago
Ebrahim Byagowi
d440c8d3fb
Add chromacheck Emoji test fonts and minor preparations ( #1294 )
6 years ago
Khaled Hosny
d4e928b142
[color] Minimal API for COLR/CPAL
6 years ago
Michiharu Ariza
e555ed961e
added flex extents test
6 years ago
Behdad Esfahbod
3341c7fbfb
[fuzzing] Move fuzzing fonts from api/ here
6 years ago
Michiharu Ariza
9228db06f4
added CFF1 Expert Encoding subset test & bug fixes
6 years ago
Ebrahim Byagowi
dc49bd8d81
Add two APIs for getting stylistic set labels
...
* hb_ot_layout_feature_get_characters
* hb_ot_layout_feature_get_name_ids
However HarfBuzz currently doesn't expose an API for retrieving the actual
information associated with NameId from the `name` table and that should be
done separately.
6 years ago
Michiharu Ariza
a6b6faf2b8
Replaced CFF1 J subset font for better coverage
...
in api test-ot-extents-cff
6 years ago
Michiharu Ariza
af61c3b10f
added vsindex test & fixed process_vsindex
6 years ago
Michiharu Ariza
83c5298f33
added cff1_legacyops.otf as test-ot-extents-cff test case
...
fixed roll operator bugs uncovered by the test
6 years ago
Michiharu Ariza
1aeaee9dfc
fixed cff2 subset test data
6 years ago
Michiharu Ariza
dac70f252a
Added CFF1 J font subset to api test
...
Also fixed FDSelect3_4::get_fd
Fixed test_subset_cff1_strip_hints (wrong font names!)
6 years ago
Michiharu Ariza
258b456566
Added CFF1 & CFF2 api tests
6 years ago
Garret Rieger
21bf147054
[subset] Fix hdmx subsetted size calculation.
6 years ago
Garret Rieger
2bdd903c69
[subset] limit the max codepoint value to the unicode limit.
...
When collecting all codepoints in the cmap avoid using large amount of memory for fonts that declare coverage over all 32 bit integers.
6 years ago
Garret Rieger
7278d9df30
[subset] Add hb_ot_layout_collect_features to harfbuzz-sections.txt.
...
Add the fuzzer test case for feature collection timeout.
6 years ago
Garret Rieger
5edf454aa6
[subset] During lookup collection remember the features we've already processed.
6 years ago
Garret Rieger
4f8753464a
[subset] Add fuzzer test case that caused a timeout to the corpus.
6 years ago
Garret Rieger
197cb18b22
[subset] Add test cases for gsub closure in subsetting.
7 years ago
Garret Rieger
a8e7f9b958
[subset] Get cmap tests passing again.
7 years ago
Garret Rieger
4fa1c6705a
[subset] Check instruction offsets in glyph to ensure they are in bounds.
7 years ago
Garret Rieger
e29c8e33f3
[subset] Add a test for previous cmap breakage.
7 years ago
Garret Rieger
5dadbb0fa0
[subset] Add implementation of cmap format 12 codepoint listing. ( #988 )
7 years ago
Garret Rieger
21a181af2b
[subset] sketch out support for a call that lists all codepoints present in a font. Implement support for it in format 4 cmap sub table.
7 years ago
Garret Rieger
1c3372786c
[subset] fix infinite loop bug in looping through tables for subsetting.
7 years ago
Garret Rieger
07851aae9d
[subset] Couple of fixes for fuzzer discovered issues. ( #924 )
...
* [subset] sanitize individual DeviceRecord's as part of hdmx sanitization.
* [subset] Fix out of bounds read with non-two byte align glyphs.
* [subset] Just use size_device_record >= DeviceRecord::min_size.
* [subset] Add TODO.
* [subset] Re-order checks in hdmx sanitize.
7 years ago
Garret Rieger
1396614040
[subset] don't use pointers returned from push after array has resized in hb-subset-glyf.cc
7 years ago
Garret Rieger
3531efdb4c
[subset] Fixed out of bounds read when subsetting hdmx.
7 years ago
Garret Rieger
e597436b99
[subset] Disable glyf accelerator_t methods if it didn't successfully init.
7 years ago
Garret Rieger
7251181b56
[subset] Fix infinite loop in there are more then 32 tables.
7 years ago