[feaLib] add test for issue #504

This commit is contained in:
moyogo 2016-04-25 22:35:41 +01:00
parent f81e1411b3
commit 4ec59b27dd
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,5 @@
# https://github.com/behdad/fonttools/issues/504
feature test {
sub [a b c d] by [T E S T];
} test;

View File

@ -0,0 +1,46 @@
<?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="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="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="a" out="T"/>
<Substitution in="b" out="E"/>
<Substitution in="c" out="S"/>
<Substitution in="d" out="T"/>
</SingleSubst>
</Lookup>
</LookupList>
</GSUB>
</ttFont>