Before this change, the `script` statement had inherited global defaults. After this change, it overrides them. The new behavior matches the behavior of makeotf v2.0.90. Resolves https://github.com/behdad/fonttools/issues/505. For the test case of https://github.com/behdad/fonttools/issues/501, which was about an unrelated problem, feaLib now produces the exact same output as makeotf v2.0.90.
44 lines
1.1 KiB
XML
44 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ttFont sfntVersion="true" ttLibVersion="3.0">
|
|
|
|
<GSUB>
|
|
<Version value="1.0"/>
|
|
<ScriptList>
|
|
<!-- ScriptCount=1 -->
|
|
<ScriptRecord index="0">
|
|
<ScriptTag value="vai "/>
|
|
<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=1 -->
|
|
<LookupFlag value="0"/>
|
|
<!-- SubTableCount=1 -->
|
|
<SingleSubst index="0">
|
|
<Substitution in="T" out="t"/>
|
|
</SingleSubst>
|
|
</Lookup>
|
|
</LookupList>
|
|
</GSUB>
|
|
|
|
</ttFont>
|