Use existing method

This commit is contained in:
Miguel Sousa 2019-04-01 21:26:07 -07:00
parent 86cea23de3
commit 2c54bf7910

View File

@ -156,17 +156,7 @@ def test_build_otf(tmpdir):
def test_build_var(tmpdir): def test_build_var(tmpdir):
outPath = os.path.join(str(tmpdir), "test_var.ttf") outPath = os.path.join(str(tmpdir), "test_var.ttf")
fb = FontBuilder(1024, isTTF=True) fb, advanceWidths, nameStrings = _setupFontBuilder(True)
fb.setupGlyphOrder([".notdef", ".null", "A", "a"])
fb.setupCharacterMap({65: "A", 97: "a"})
advanceWidths = {".notdef": 600, "A": 600, "a": 600, ".null": 600}
familyName = "HelloTestFont"
styleName = "TotallyNormal"
nameStrings = dict(familyName=dict(en="HelloTestFont", nl="HalloTestFont"),
styleName=dict(en="TotallyNormal", nl="TotaalNormaal"))
nameStrings['psName'] = familyName + "-" + styleName
pen = TTGlyphPen(None) pen = TTGlyphPen(None)
pen.moveTo((100, 0)) pen.moveTo((100, 0))