fix the glyph name for space to match the name in the AGL
This commit is contained in:
parent
f51c1145df
commit
2aba7f6e14
@ -41,9 +41,9 @@ def drawTestGlyph(pen):
|
|||||||
|
|
||||||
|
|
||||||
fb = FontBuilder(1024, isTTF=True)
|
fb = FontBuilder(1024, isTTF=True)
|
||||||
fb.setupGlyphOrder([".notdef", ".null", ".space", "A", "a"])
|
fb.setupGlyphOrder([".notdef", ".null", "space", "A", "a"])
|
||||||
fb.setupCharacterMap({32: ".space", 65: "A", 97: "a"})
|
fb.setupCharacterMap({32: "space", 65: "A", 97: "a"})
|
||||||
advanceWidths = {".notdef": 600, ".space": 500, "A": 600, "a": 600, ".null": 0}
|
advanceWidths = {".notdef": 600, "space": 500, "A": 600, "a": 600, ".null": 0}
|
||||||
|
|
||||||
familyName = "HelloTestFont"
|
familyName = "HelloTestFont"
|
||||||
styleName = "TotallyNormal"
|
styleName = "TotallyNormal"
|
||||||
@ -61,7 +61,7 @@ nameStrings = dict(
|
|||||||
pen = TTGlyphPen(None)
|
pen = TTGlyphPen(None)
|
||||||
drawTestGlyph(pen)
|
drawTestGlyph(pen)
|
||||||
glyph = pen.glyph()
|
glyph = pen.glyph()
|
||||||
glyphs = {".notdef": glyph, ".space": glyph, "A": glyph, "a": glyph, ".null": glyph}
|
glyphs = {".notdef": glyph, "space": glyph, "A": glyph, "a": glyph, ".null": glyph}
|
||||||
fb.setupGlyf(glyphs)
|
fb.setupGlyf(glyphs)
|
||||||
metrics = {}
|
metrics = {}
|
||||||
glyphTable = fb.font["glyf"]
|
glyphTable = fb.font["glyf"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user