-
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.
Support building feature variations using the "condition" statement.
- Loading branch information
1 parent
eec723b
commit db7bbdb
Showing
5 changed files
with
121 additions
and
3 deletions.
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
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,13 @@ | ||
languagesystem DFLT dflt; | ||
|
||
lookup symbols_heavy { | ||
sub a by b; | ||
} symbols_heavy; | ||
|
||
conditionset heavy { | ||
wght 700 900; | ||
} heavy; | ||
|
||
variation rvrn heavy { | ||
lookup symbols_heavy; | ||
} rvrn; |
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,63 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ttFont> | ||
|
||
<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="rvrn"/> | ||
<Feature> | ||
<!-- LookupCount=0 --> | ||
</Feature> | ||
</FeatureRecord> | ||
</FeatureList> | ||
<LookupList> | ||
<!-- LookupCount=1 --> | ||
<Lookup index="0"> | ||
<LookupType value="1"/> | ||
<LookupFlag value="0"/> | ||
<!-- SubTableCount=1 --> | ||
<SingleSubst index="0"> | ||
<Substitution in="a" out="b"/> | ||
</SingleSubst> | ||
</Lookup> | ||
</LookupList> | ||
<FeatureVariations> | ||
<Version value="0x00010000"/> | ||
<FeatureVariationRecord index="0"> | ||
<ConditionSet> | ||
<ConditionTable index="0" Format="1"> | ||
<AxisIndex value="0"/> | ||
<FilterRangeMinValue value="0.625"/> | ||
<FilterRangeMaxValue value="0.875"/> | ||
</ConditionTable> | ||
</ConditionSet> | ||
<FeatureTableSubstitution> | ||
<Version value="0x00010000"/> | ||
<SubstitutionRecord index="0"> | ||
<FeatureIndex value="0"/> | ||
<Feature> | ||
<LookupListIndex index="0" value="0"/> | ||
</Feature> | ||
</SubstitutionRecord> | ||
</FeatureTableSubstitution> | ||
</FeatureVariationRecord> | ||
</FeatureVariations> | ||
</GSUB> | ||
|
||
</ttFont> |