-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[varLib] Allow feature variations to be active across the entire space (
#1957) * Allow feature variations to be active across the entire space * Add test with empty condition set * Skip initial box instead of removing it * Correct comment
- Loading branch information
Showing
5 changed files
with
170 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,34 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<designspace format="3"> | ||
<axes> | ||
<axis default="368.0" maximum="1000.0" minimum="0.0" name="weight" tag="wght" /> | ||
</axes> | ||
<rules processing="last"> | ||
<rule name="always"> | ||
<conditionset> | ||
<condition name="weight" minimum="0" maximum="1000" /> | ||
</conditionset> | ||
<sub name="uni0024" with="uni0024.nostroke" /> | ||
</rule> | ||
</rules> | ||
<sources> | ||
<source familyname="Test Family" filename="master_ufo/TestFamily-Master0.ufo" name="master_0" stylename="Master0"> | ||
<location> | ||
<dimension name="weight" xvalue="0" /> | ||
</location> | ||
</source> | ||
<source familyname="Test Family" filename="master_ufo/TestFamily-Master1.ufo" name="master_1" stylename="Master1"> | ||
<lib copy="1" /> | ||
<groups copy="1" /> | ||
<info copy="1" /> | ||
<location> | ||
<dimension name="weight" xvalue="368" /> | ||
</location> | ||
</source> | ||
<source familyname="Test Family" filename="master_ufo/TestFamily-Master3.ufo" name="master_3" stylename="Master3"> | ||
<location> | ||
<dimension name="weight" xvalue="1000" /> | ||
</location> | ||
</source> | ||
</sources> | ||
</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,33 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<designspace format="3"> | ||
<axes> | ||
<axis default="368.0" maximum="1000.0" minimum="0.0" name="weight" tag="wght" /> | ||
</axes> | ||
<rules processing="last"> | ||
<rule name="always"> | ||
<conditionset> | ||
</conditionset> | ||
<sub name="uni0024" with="uni0024.nostroke" /> | ||
</rule> | ||
</rules> | ||
<sources> | ||
<source familyname="Test Family" filename="master_ufo/TestFamily-Master0.ufo" name="master_0" stylename="Master0"> | ||
<location> | ||
<dimension name="weight" xvalue="0" /> | ||
</location> | ||
</source> | ||
<source familyname="Test Family" filename="master_ufo/TestFamily-Master1.ufo" name="master_1" stylename="Master1"> | ||
<lib copy="1" /> | ||
<groups copy="1" /> | ||
<info copy="1" /> | ||
<location> | ||
<dimension name="weight" xvalue="368" /> | ||
</location> | ||
</source> | ||
<source familyname="Test Family" filename="master_ufo/TestFamily-Master3.ufo" name="master_3" stylename="Master3"> | ||
<location> | ||
<dimension name="weight" xvalue="1000" /> | ||
</location> | ||
</source> | ||
</sources> | ||
</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,75 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="4.9"> | ||
|
||
<fvar> | ||
|
||
<!-- Weight --> | ||
<Axis> | ||
<AxisTag>wght</AxisTag> | ||
<Flags>0x0</Flags> | ||
<MinValue>0.0</MinValue> | ||
<DefaultValue>368.0</DefaultValue> | ||
<MaxValue>1000.0</MaxValue> | ||
<AxisNameID>256</AxisNameID> | ||
</Axis> | ||
</fvar> | ||
|
||
<GSUB> | ||
<Version value="0x00010001"/> | ||
<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="rclt"/> | ||
<Feature> | ||
<!-- LookupCount=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="uni0024" out="uni0024.nostroke"/> | ||
</SingleSubst> | ||
</Lookup> | ||
</LookupList> | ||
<FeatureVariations> | ||
<Version value="0x00010000"/> | ||
<!-- FeatureVariationCount=1 --> | ||
<FeatureVariationRecord index="0"> | ||
<ConditionSet> | ||
<!-- ConditionCount=0 --> | ||
</ConditionSet> | ||
<FeatureTableSubstitution> | ||
<Version value="0x00010000"/> | ||
<!-- SubstitutionCount=1 --> | ||
<SubstitutionRecord index="0"> | ||
<FeatureIndex value="0"/> | ||
<Feature> | ||
<!-- LookupCount=1 --> | ||
<LookupListIndex index="0" value="0"/> | ||
</Feature> | ||
</SubstitutionRecord> | ||
</FeatureTableSubstitution> | ||
</FeatureVariationRecord> | ||
</FeatureVariations> | ||
</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