[hb_input] Define dummy fonts' glyph list here
This is no longer included in feaLib, so just redefine it here.
@@ -19,11 +19,10 @@ import unittest
from fontTools.agl import AGL2UV
from fontTools.feaLib.builder import addOpenTypeFeaturesFromString
-from fontTools.feaLib.builder_test import makeTTFont
from fontTools.misc import UnicodeIO
from fontTools import mtiLib
from fontTools.pens.ttGlyphPen import TTGlyphPen
-from fontTools.ttLib import newTable
+from fontTools.ttLib import newTable, TTFont
from fontTools.ttLib.tables._c_m_a_p import cmap_format_4
from nototools.hb_input import HbInputGenerator
@@ -36,7 +35,35 @@ def make_font(feature_source, fea_type='fea'):
debugging purposes.
"""
- font = makeTTFont()
+ # copied from fontTools' feaLib/builder_test.
+ glyphs = """
+ .notdef space slash fraction semicolon period comma ampersand
+ quotedblleft quotedblright quoteleft quoteright
+ zero one two three four five six seven eight nine
+ zero.oldstyle one.oldstyle two.oldstyle three.oldstyle
+ four.oldstyle five.oldstyle six.oldstyle seven.oldstyle
+ eight.oldstyle nine.oldstyle onequarter onehalf threequarters
+ onesuperior twosuperior threesuperior ordfeminine ordmasculine
+ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
+ a b c d e f g h i j k l m n o p q r s t u v w x y z
+ A.sc B.sc C.sc D.sc E.sc F.sc G.sc H.sc I.sc J.sc K.sc L.sc M.sc
+ N.sc O.sc P.sc Q.sc R.sc S.sc T.sc U.sc V.sc W.sc X.sc Y.sc Z.sc
+ A.alt1 A.alt2 A.alt3 B.alt1 B.alt2 B.alt3 C.alt1 C.alt2 C.alt3
+ a.alt1 a.alt2 a.alt3 a.end b.alt c.mid d.alt d.mid
+ e.begin e.mid e.end m.begin n.end s.end z.end
+ Eng Eng.alt1 Eng.alt2 Eng.alt3
+ A.swash B.swash C.swash D.swash E.swash F.swash G.swash H.swash
+ I.swash J.swash K.swash L.swash M.swash N.swash O.swash P.swash
+ Q.swash R.swash S.swash T.swash U.swash V.swash W.swash X.swash
+ Y.swash Z.swash
+ f_l c_h c_k c_s c_t f_f f_f_i f_f_l f_i o_f_f_i s_t f_i.begin
+ 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
+ by feature lookup sub table
+ """.split()
+ font = TTFont()
+ font.setGlyphOrder(glyphs)
glyph_order = font.getGlyphOrder()
font['cmap'] = cmap = newTable('cmap')
