From 3b1e0bdc4751a19e2d26febbc5979c481157cca1 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Wed, 2 Nov 2016 16:00:25 +0000 Subject: [PATCH] [feaLib.builder_test] fix up tests for backslash-escaped glyph names --- Lib/fontTools/feaLib/builder_test.py | 2 +- Lib/fontTools/feaLib/testdata/bug457.fea | 2 +- Lib/fontTools/feaLib/testdata/bug457.ttx | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Lib/fontTools/feaLib/builder_test.py b/Lib/fontTools/feaLib/builder_test.py index 093206da2..337d97508 100644 --- a/Lib/fontTools/feaLib/builder_test.py +++ b/Lib/fontTools/feaLib/builder_test.py @@ -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) diff --git a/Lib/fontTools/feaLib/testdata/bug457.fea b/Lib/fontTools/feaLib/testdata/bug457.fea index 90d28cdde..0e8f16913 100644 --- a/Lib/fontTools/feaLib/testdata/bug457.fea +++ b/Lib/fontTools/feaLib/testdata/bug457.fea @@ -1,4 +1,4 @@ -@group = [\glyphNameWithBackslash1 \glyphNameWithBackslash2]; +@group = [\A \sub \lookup \feature \by \table]; feature liga { sub @group by G; diff --git a/Lib/fontTools/feaLib/testdata/bug457.ttx b/Lib/fontTools/feaLib/testdata/bug457.ttx index 1eabc9570..bad53020d 100644 --- a/Lib/fontTools/feaLib/testdata/bug457.ttx +++ b/Lib/fontTools/feaLib/testdata/bug457.ttx @@ -34,8 +34,12 @@ - - + + + + + +