[varLib_test] use multiple tags in FeatureVarsCustomTag.designspace

This commit is contained in:
Cosimo Lupo 2023-12-01 16:49:14 +00:00
parent a2f6f2ffed
commit a2e05fb084
No known key found for this signature in database
GPG Key ID: DF65A8A5A119C9A8
2 changed files with 43 additions and 7 deletions

View File

@ -71,7 +71,7 @@
<lib> <lib>
<dict> <dict>
<key>com.github.fonttools.varLib.featureVarsFeatureTag</key> <key>com.github.fonttools.varLib.featureVarsFeatureTag</key>
<string>calt</string> <string>rclt,calt</string>
</dict> </dict>
</lib> </lib>
</designspace> </designspace>

View File

@ -33,21 +33,28 @@
<Script> <Script>
<DefaultLangSys> <DefaultLangSys>
<ReqFeatureIndex value="65535"/> <ReqFeatureIndex value="65535"/>
<!-- FeatureCount=1 --> <!-- FeatureCount=2 -->
<FeatureIndex index="0" value="0"/> <FeatureIndex index="0" value="0"/>
<FeatureIndex index="1" value="1"/>
</DefaultLangSys> </DefaultLangSys>
<!-- LangSysCount=0 --> <!-- LangSysCount=0 -->
</Script> </Script>
</ScriptRecord> </ScriptRecord>
</ScriptList> </ScriptList>
<FeatureList> <FeatureList>
<!-- FeatureCount=1 --> <!-- FeatureCount=2 -->
<FeatureRecord index="0"> <FeatureRecord index="0">
<FeatureTag value="calt"/> <FeatureTag value="calt"/>
<Feature> <Feature>
<!-- LookupCount=0 --> <!-- LookupCount=0 -->
</Feature> </Feature>
</FeatureRecord> </FeatureRecord>
<FeatureRecord index="1">
<FeatureTag value="rclt"/>
<Feature>
<!-- LookupCount=0 -->
</Feature>
</FeatureRecord>
</FeatureList> </FeatureList>
<LookupList> <LookupList>
<!-- LookupCount=3 --> <!-- LookupCount=3 -->
@ -95,7 +102,7 @@
</ConditionSet> </ConditionSet>
<FeatureTableSubstitution> <FeatureTableSubstitution>
<Version value="0x00010000"/> <Version value="0x00010000"/>
<!-- SubstitutionCount=1 --> <!-- SubstitutionCount=2 -->
<SubstitutionRecord index="0"> <SubstitutionRecord index="0">
<FeatureIndex value="0"/> <FeatureIndex value="0"/>
<Feature> <Feature>
@ -104,6 +111,14 @@
<LookupListIndex index="1" value="1"/> <LookupListIndex index="1" value="1"/>
</Feature> </Feature>
</SubstitutionRecord> </SubstitutionRecord>
<SubstitutionRecord index="1">
<FeatureIndex value="1"/>
<Feature>
<!-- LookupCount=2 -->
<LookupListIndex index="0" value="0"/>
<LookupListIndex index="1" value="1"/>
</Feature>
</SubstitutionRecord>
</FeatureTableSubstitution> </FeatureTableSubstitution>
</FeatureVariationRecord> </FeatureVariationRecord>
<FeatureVariationRecord index="1"> <FeatureVariationRecord index="1">
@ -122,7 +137,7 @@
</ConditionSet> </ConditionSet>
<FeatureTableSubstitution> <FeatureTableSubstitution>
<Version value="0x00010000"/> <Version value="0x00010000"/>
<!-- SubstitutionCount=1 --> <!-- SubstitutionCount=2 -->
<SubstitutionRecord index="0"> <SubstitutionRecord index="0">
<FeatureIndex value="0"/> <FeatureIndex value="0"/>
<Feature> <Feature>
@ -130,6 +145,13 @@
<LookupListIndex index="0" value="2"/> <LookupListIndex index="0" value="2"/>
</Feature> </Feature>
</SubstitutionRecord> </SubstitutionRecord>
<SubstitutionRecord index="1">
<FeatureIndex value="1"/>
<Feature>
<!-- LookupCount=1 -->
<LookupListIndex index="0" value="2"/>
</Feature>
</SubstitutionRecord>
</FeatureTableSubstitution> </FeatureTableSubstitution>
</FeatureVariationRecord> </FeatureVariationRecord>
<FeatureVariationRecord index="2"> <FeatureVariationRecord index="2">
@ -143,7 +165,7 @@
</ConditionSet> </ConditionSet>
<FeatureTableSubstitution> <FeatureTableSubstitution>
<Version value="0x00010000"/> <Version value="0x00010000"/>
<!-- SubstitutionCount=1 --> <!-- SubstitutionCount=2 -->
<SubstitutionRecord index="0"> <SubstitutionRecord index="0">
<FeatureIndex value="0"/> <FeatureIndex value="0"/>
<Feature> <Feature>
@ -151,6 +173,13 @@
<LookupListIndex index="0" value="1"/> <LookupListIndex index="0" value="1"/>
</Feature> </Feature>
</SubstitutionRecord> </SubstitutionRecord>
<SubstitutionRecord index="1">
<FeatureIndex value="1"/>
<Feature>
<!-- LookupCount=1 -->
<LookupListIndex index="0" value="1"/>
</Feature>
</SubstitutionRecord>
</FeatureTableSubstitution> </FeatureTableSubstitution>
</FeatureVariationRecord> </FeatureVariationRecord>
<FeatureVariationRecord index="3"> <FeatureVariationRecord index="3">
@ -164,7 +193,7 @@
</ConditionSet> </ConditionSet>
<FeatureTableSubstitution> <FeatureTableSubstitution>
<Version value="0x00010000"/> <Version value="0x00010000"/>
<!-- SubstitutionCount=1 --> <!-- SubstitutionCount=2 -->
<SubstitutionRecord index="0"> <SubstitutionRecord index="0">
<FeatureIndex value="0"/> <FeatureIndex value="0"/>
<Feature> <Feature>
@ -172,6 +201,13 @@
<LookupListIndex index="0" value="0"/> <LookupListIndex index="0" value="0"/>
</Feature> </Feature>
</SubstitutionRecord> </SubstitutionRecord>
<SubstitutionRecord index="1">
<FeatureIndex value="1"/>
<Feature>
<!-- LookupCount=1 -->
<LookupListIndex index="0" value="0"/>
</Feature>
</SubstitutionRecord>
</FeatureTableSubstitution> </FeatureTableSubstitution>
</FeatureVariationRecord> </FeatureVariationRecord>
</FeatureVariations> </FeatureVariations>