[feaLib.builder_test] fix up tests for backslash-escaped glyph names

This commit is contained in:
Cosimo Lupo 2016-11-02 16:00:25 +00:00
parent a0cc66bfc0
commit 3b1e0bdc47
No known key found for this signature in database
GPG Key ID: B61AAAD0B53A6419
3 changed files with 8 additions and 4 deletions

View File

@ -39,7 +39,7 @@ def makeTTFont():
a_n_d T_h T_h.swash germandbls ydieresis yacute breve
grave acute dieresis macron circumflex cedilla umlaut ogonek caron
damma hamza sukun kasratan lam_meem_jeem noon.final noon.initial
\\glyphNameWithBackslash1 \\glyphNameWithBackslash2
by feature lookup sub table
""".split()
font = TTFont()
font.setGlyphOrder(glyphs)

View File

@ -1,4 +1,4 @@
@group = [\glyphNameWithBackslash1 \glyphNameWithBackslash2];
@group = [\A \sub \lookup \feature \by \table];
feature liga {
sub @group by G;

View File

@ -34,8 +34,12 @@
<LookupFlag value="0"/>
<!-- SubTableCount=1 -->
<SingleSubst index="0">
<Substitution in="\glyphNameWithBackslash1" out="G"/>
<Substitution in="\glyphNameWithBackslash2" out="G"/>
<Substitution in="A" out="G"/>
<Substitution in="by" out="G"/>
<Substitution in="feature" out="G"/>
<Substitution in="lookup" out="G"/>
<Substitution in="sub" out="G"/>
<Substitution in="table" out="G"/>
</SingleSubst>
</Lookup>
</LookupList>