[feaLib.builder_test] fix up tests for backslash-escaped glyph names
This commit is contained in:
parent
a0cc66bfc0
commit
3b1e0bdc47
@ -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)
|
||||
|
2
Lib/fontTools/feaLib/testdata/bug457.fea
vendored
2
Lib/fontTools/feaLib/testdata/bug457.fea
vendored
@ -1,4 +1,4 @@
|
||||
@group = [\glyphNameWithBackslash1 \glyphNameWithBackslash2];
|
||||
@group = [\A \sub \lookup \feature \by \table];
|
||||
|
||||
feature liga {
|
||||
sub @group by G;
|
||||
|
8
Lib/fontTools/feaLib/testdata/bug457.ttx
vendored
8
Lib/fontTools/feaLib/testdata/bug457.ttx
vendored
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user