If a variable scalar does not vary (i.e. all values are the same), we can simplify it and use a simple value instead. Arguably users shouldn’t be using variable scalar in this case, but it helps when the feature code is auto generated so each feaLib users doesn’t have to do the check done here themselves.
112 lines
3.1 KiB
XML
112 lines
3.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ttFont>
|
|
|
|
<GDEF>
|
|
<Version value="0x00010003"/>
|
|
<VarStore Format="1">
|
|
<Format value="1"/>
|
|
<VarRegionList>
|
|
<!-- RegionAxisCount=2 -->
|
|
<!-- RegionCount=2 -->
|
|
<Region index="0">
|
|
<VarRegionAxis index="0">
|
|
<StartCoord value="0.0"/>
|
|
<PeakCoord value="0.875"/>
|
|
<EndCoord value="0.875"/>
|
|
</VarRegionAxis>
|
|
<VarRegionAxis index="1">
|
|
<StartCoord value="0.0"/>
|
|
<PeakCoord value="0.0"/>
|
|
<EndCoord value="0.0"/>
|
|
</VarRegionAxis>
|
|
</Region>
|
|
<Region index="1">
|
|
<VarRegionAxis index="0">
|
|
<StartCoord value="0.0"/>
|
|
<PeakCoord value="0.875"/>
|
|
<EndCoord value="0.875"/>
|
|
</VarRegionAxis>
|
|
<VarRegionAxis index="1">
|
|
<StartCoord value="0.0"/>
|
|
<PeakCoord value="0.5"/>
|
|
<EndCoord value="0.5"/>
|
|
</VarRegionAxis>
|
|
</Region>
|
|
</VarRegionList>
|
|
<!-- VarDataCount=1 -->
|
|
<VarData index="0">
|
|
<!-- ItemCount=1 -->
|
|
<NumShorts value="0"/>
|
|
<!-- VarRegionCount=2 -->
|
|
<VarRegionIndex index="0" value="0"/>
|
|
<VarRegionIndex index="1" value="1"/>
|
|
<Item index="0" value="[10, 20]"/>
|
|
</VarData>
|
|
</VarStore>
|
|
</GDEF>
|
|
|
|
<GPOS>
|
|
<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="kern"/>
|
|
<Feature>
|
|
<!-- LookupCount=1 -->
|
|
<LookupListIndex index="0" value="0"/>
|
|
</Feature>
|
|
</FeatureRecord>
|
|
</FeatureList>
|
|
<LookupList>
|
|
<!-- LookupCount=1 -->
|
|
<Lookup index="0">
|
|
<LookupType value="1"/>
|
|
<LookupFlag value="0"/>
|
|
<!-- SubTableCount=3 -->
|
|
<SinglePos index="0" Format="1">
|
|
<Coverage>
|
|
<Glyph value="one"/>
|
|
</Coverage>
|
|
<ValueFormat value="4"/>
|
|
<Value XAdvance="1"/>
|
|
</SinglePos>
|
|
<SinglePos index="1" Format="1">
|
|
<Coverage>
|
|
<Glyph value="two"/>
|
|
</Coverage>
|
|
<ValueFormat value="34"/>
|
|
<Value YPlacement="12">
|
|
<YPlaDevice>
|
|
<StartSize value="0"/>
|
|
<EndSize value="0"/>
|
|
<DeltaFormat value="32768"/>
|
|
</YPlaDevice>
|
|
</Value>
|
|
</SinglePos>
|
|
<SinglePos index="2" Format="1">
|
|
<Coverage>
|
|
<Glyph value="three"/>
|
|
</Coverage>
|
|
<ValueFormat value="2"/>
|
|
<Value YPlacement="12"/>
|
|
</SinglePos>
|
|
</Lookup>
|
|
</LookupList>
|
|
</GPOS>
|
|
|
|
</ttFont>
|