-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[buildcff2vf] fix bug 817: unintentional subsetting of features
A side effect of of using the fontTools subsetter module to implement glyph subsetting with the -i option is that features are removed if they are not in the subsetter default features set . Since buildcff2vf is not intended to filter out features, I fixed this by setting the subsetter module's layout_features option field to '*', which causes it to pass through all features.
- Loading branch information
1 parent
5a1eda3
commit a8ecfcf
Showing
8 changed files
with
107 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ttFont sfntVersion="OTTO" ttLibVersion="3.43"> | ||
|
||
<GSUB> | ||
<Version value="0x00010000"/> | ||
<ScriptList> | ||
<!-- ScriptCount=1 --> | ||
<ScriptRecord index="0"> | ||
<ScriptTag value="DFLT"/> | ||
<Script> | ||
<DefaultLangSys> | ||
<ReqFeatureIndex value="65535"/> | ||
<!-- FeatureCount=1 --> | ||
<FeatureIndex index="0" value="0"/> | ||
</DefaultLangSys> | ||
<!-- LangSysCount=0 --> | ||
</Script> | ||
</ScriptRecord> | ||
</ScriptList> | ||
<FeatureList> | ||
<!-- FeatureCount=1 --> | ||
<FeatureRecord index="0"> | ||
<FeatureTag value="test"/> | ||
<Feature> | ||
<!-- LookupCount=1 --> | ||
<LookupListIndex index="0" value="0"/> | ||
</Feature> | ||
</FeatureRecord> | ||
</FeatureList> | ||
<LookupList> | ||
<!-- LookupCount=1 --> | ||
<Lookup index="0"> | ||
<LookupType value="1"/> | ||
<LookupFlag value="0"/> | ||
<!-- SubTableCount=1 --> | ||
<SingleSubst index="0" Format="1"> | ||
<Substitution in="A" out="A"/> | ||
</SingleSubst> | ||
</Lookup> | ||
</LookupList> | ||
</GSUB> | ||
|
||
</ttFont> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<designspace format="3"> | ||
<axes> | ||
<axis default="368" maximum="1000.0" minimum="0.0" name="weight" tag="wght"> | ||
</axis> | ||
</axes> | ||
<sources> | ||
<source filename="source_fonts/SourceCode_ExtraLight.ufo" name="master_0"> | ||
<location> | ||
<dimension name="weight" xvalue="0" /> | ||
</location> | ||
</source> | ||
<source filename="source_fonts/SourceCode_Regular.ufo" name="master_1"> | ||
<location> | ||
<dimension name="weight" xvalue="368" /> | ||
</location> | ||
</source> | ||
<source filename="source_fonts/SourceCode_Black.ufo" name="master_2"> | ||
<location> | ||
<dimension name="weight" xvalue="1000" /> | ||
</location> | ||
</source> | ||
</sources> | ||
<instances> | ||
<instance familyname="Bug 816 TestVF" postscriptfontname="SourceCodeRoman-ExtraLight" stylename="ExtraLight"> | ||
<location> | ||
<dimension name="weight" xvalue="0" /> | ||
</location> | ||
</instance> | ||
<instance familyname="Bug 816 TestVF" postscriptfontname="SourceCodeRoman-Regular" stylename="Regular"> | ||
<location> | ||
<dimension name="weight" xvalue="368" /> | ||
</location> | ||
</instance> | ||
<instance familyname="Bug 816 TestVF" postscriptfontname="SourceCodeRoman-Black" stylename="Black"> | ||
<location> | ||
<dimension name="weight" xvalue="1000" /> | ||
</location> | ||
</instance> | ||
</instances> | ||
</designspace> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
((('weight',0.0),), (('weight', 368.0),),) | ||
.notdef | ||
A | ||
T | ||
((('weight',1000.0),),) | ||
.notdef | ||
A |
Binary file added
BIN
+1.66 KB
tests/buildcff2vf_data/input/bug817/source_fonts/SourceCode_Black.otf
Binary file not shown.
Binary file added
BIN
+1.7 KB
tests/buildcff2vf_data/input/bug817/source_fonts/SourceCode_ExtraLight.otf
Binary file not shown.
Binary file added
BIN
+1.68 KB
tests/buildcff2vf_data/input/bug817/source_fonts/SourceCode_Regular.otf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters