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.
48 lines
1.2 KiB
XML
48 lines
1.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ttFont sfntVersion="true" ttLibVersion="3.0">
|
|
|
|
<GPOS>
|
|
<Version value="1.0"/>
|
|
<ScriptList>
|
|
<!-- ScriptCount=1 -->
|
|
<ScriptRecord index="0">
|
|
<ScriptTag value="grek"/>
|
|
<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 -->
|
|
<SinglePos index="0" Format="1">
|
|
<Coverage>
|
|
<Glyph value="T"/>
|
|
</Coverage>
|
|
<ValueFormat value="4"/>
|
|
<Value XAdvance="100"/>
|
|
</SinglePos>
|
|
</Lookup>
|
|
</LookupList>
|
|
</GPOS>
|
|
|
|
</ttFont>
|