[feaLib] add test for issue #504
This commit is contained in:
parent
f81e1411b3
commit
4ec59b27dd
5
Lib/fontTools/feaLib/testdata/bug504.fea
vendored
Normal file
5
Lib/fontTools/feaLib/testdata/bug504.fea
vendored
Normal 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;
|
46
Lib/fontTools/feaLib/testdata/bug504.ttx
vendored
Normal file
46
Lib/fontTools/feaLib/testdata/bug504.ttx
vendored
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user