Garret Rieger
d5beb96e06
[repacker] add repacker isolation test on real font.
3 years ago
Qunxin Liu
ca7b9daef0
[subset] subset MATH table
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
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
3 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
3 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.
3 years ago
Garret Rieger
deee24fbef
[subset] Add missing FontName op code in top dict parsing.
...
Fix for #3058
3 years ago
Garret Rieger
d2397d91f3
[subset] Add additional colrv1 subsetting tests that has a glyph with components.
3 years ago
Qunxin Liu
f739e1dc6a
[subset] subset both CPAL and COLRv1
4 years ago
Garret Rieger
a08900b721
[subset] fix failing colrv0 subsetting when font has composite glyphs.
...
Composite glyph collection was happening along side colrv0 glyph collection which meant it was possible to miss grabbing the component glyphs for a glyph added by colrv0.
4 years ago
Garret Rieger
c35d786397
[subset] never drop the 'pref' feature.
...
Never ever drop feature 'pref', even if it's empty. Harfbuzz uses it to choose the shaper for Khmer.
4 years ago
Garret Rieger
85b0728783
Add full variable font subsetting test.
4 years ago
Qunxin Liu
95230e291d
[subset] support subsetting GSUB8
4 years ago
Garret Rieger
b8b8c58b9f
[subset] add tests that check for successful repacking of a real font file.
4 years ago
Qunxin Liu
56ca435787
[subset] fix for collect_features and remove_redundant_lamngsys
...
previously remove_redundant_sys () is missing in harfbuzz, after
redundant langsys removal, some features are removed as well in
prune_features() in fonttools. This change is trying to get the same
result between harfbuzz and fonttools.
4 years ago
Qunxin Liu
0e1c0fa404
[subset] optimize glyph closure method: step 5
...
add testcase and some fixes
4 years ago
Garret Rieger
190b7a98f8
[subset] Update PairPosFormat2 subsetting to match fontTools updated subsetting ( https://github.com/fonttools/fonttools/pull/2221 )
...
- subset class def 1 against the coverage table.
- Don't re-use class 0 in class def 2.
- Ignore class 0 glyphs for the purposes of determing format 1 vs format 2 encoding for ClassDef.
Add an additional test case which demonstrates these issues.
4 years ago
Garret Rieger
08a4997fde
[subset] Add subset support for Extension lookups (GPOS 9, GSUB 7).
4 years ago
Khaled Hosny
5091ea7e24
Merge pull request #2733 from astiob/buffer-context-doc
...
[docs] Describe buffer context applicability more explicitly
4 years ago
Qunxin Liu
3a0b05faf1
[subset] GPOS 5 MarkToLigature subsetting support
4 years ago
Garret Rieger
3271a7cdaa
[subset] Remove redundant langys from Amiri test font.
...
FontTools removes these when subsetting but harfbuzz does not yet support redundant langsys removal. So this gets the Amiri tests passing for now.
4 years ago
Garret Rieger
7b77ce0507
[subset] Add subsetting integration test using Amiri.
...
Demonstrates a failure in subsetting GPOS 8/GSUB 6.
4 years ago
Qunxin Liu
3c5bdd9bb8
[subset] GDEF AttachList subsetting support
5 years ago
Qunxin Liu
593e58c842
[subset] ChainContext subsetting fix: add lookup index remapping
5 years ago
Qunxin Liu
d7c012a08e
[subset] GDEF Variation Store: step 2
...
do subset based on variation indices collected in step 1
5 years ago
Qunxin Liu
8b5d3ebd96
[subset] GSUB5/GPOS7 Contextual Subst/Pos Subtbale Subsetting support
5 years ago
Garret Rieger
411225426f
Fix glyph closure for alternate substitution.
...
It was not filtering on the glyphs to be retained.
5 years ago
Qunxin Liu
eb7849a806
[subset] GPOS6 MarkToMark subsetting support
5 years ago
Qunxin Liu
82afc75835
[subset] GPOS4 MarkBase subsetting support
5 years ago
ckitagawa-work
774725b43a
[subset] Avoid incorrectly dropping cmap for NotoColorEmoji.ttf
...
NotoColorEmoji.ttf uses two cmap subtables
Format 14 | Platform ID 0 | Platform Encoding ID 5
Format 12 | Platform ID 3 | Platform Encoding ID 10
This combination results in the cmap table being dropped during subsetting despite being valid/required.
5 years ago
Qunxin Liu
490ef1cc23
[subset] Fix namerecord ordering
...
This will fix inconsistency with fontTools.
Also according to the spec, namerecords must be sorted
first by platform ID, then by platform-specific ID,
then by language ID, and then by name ID.
5 years ago
ckitagawa
e128f80278
parent 777ba47b50
...
author ckitagawa <ckitagawa@chromium.org> 1579631743 -0500
committer ckitagawa <ckitagawa@chromium.org> 1580506176 -0500
[subset] Add CBLC support
5 years ago
Qunxin Liu
b6a8f5e63c
[subset] CMAP table subsetting fix
...
Not all codepoints smaller than 0xFFFF go to cmap4 table.
Only subset codepoints existing in each table.
This will also make harfbuzz consistent with fontTools' behavior
5 years ago
ckitagawa
ed857c4680
[subset] Add COLR support
5 years ago
ckitagawa
93376a6436
Add unittests
5 years ago
ckitagawa
43b6c865ae
[subset] Support sbix subsetting
5 years ago
Qunxin Liu
1f0a9d9be9
[subset] GPOS Lookup Type 2: PairPos
5 years ago
Qunxin Liu
b66094ada0
[subset] GSUB Lookup Type 6: ChainContextSubst
5 years ago
Qunxin Liu
b0c3eb06b6
[subset] GPOS Lookup Type 3: CursivePos
5 years ago
Qunxin Liu
bf66d1bf58
[subset] Add integration tests for cmap14
5 years ago
Qunxin Liu
321d5588d4
[subset] Add subsetting for GPOS Lookup Type 1: Single Adjustment Positioning Subtable
5 years ago
Michiharu Ariza
82d4bfb8f3
enable cff subset tests
...
add Unicode UCS-4 cmap
fix Unicode bits in OS/2
add Unicode cmap sub-table in SourceHanSans-Regular_subset.otf
regenerate cff subset test expected results
6 years ago
Qunxin Liu
993d81b9c5
[subset] Add one ttf file with fvar/STAT tables to integration test
...
Ignore gvar/MVAR/HVAR table
add support for --nameIDs=* option
6 years ago
Garret Rieger
c740c8636b
[subset] Add integration tests for SingleSubst.
6 years ago
Michiharu Ariza
e44b83aac0
replace test font SourceHanSans with its subet
6 years ago
Michiharu Ariza
fe5aa8b36c
added TT VF full font test & fixed bugs
...
updated CFF2 VF api test results too
6 years ago
Michiharu Ariza
325918172e
added TT VF full font test & fixed bugs
...
updated CFF2 VF api test results too
6 years ago
Michiharu Ariza
1377adc8a8
Added SourceHanSans-Regular for CFF subset test
...
Disabled FDSelect serialization to format 0 for compatibility with fonttools
6 years ago
Michiharu Ariza
bf4eb2e4cf
Added SourceSansPro-Regular along as CFF full-font test case
...
derived "expected" subset fonts from fonttools then manually tweaked further so they resemble hb-subset output
6 years ago
Garret Rieger
b0d7971be0
[subset] Updated expected files for japanese subset integration tests to include cmap4.
7 years ago