tools/gen-glyphinfo: print warning instead of crash when a glyph is in glyphOrder but not in the font
This commit is contained in:
parent
0c09885c35
commit
72a93ebd23
1 changed files with 7 additions and 0 deletions
|
|
@ -81,6 +81,13 @@ def main():
|
||||||
if name in visitedGlyphNames:
|
if name in visitedGlyphNames:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if name not in font:
|
||||||
|
print(
|
||||||
|
"warning: %r in public.glyphOrder but doesn't exist in font" % name,
|
||||||
|
file=sys.stderr
|
||||||
|
)
|
||||||
|
continue
|
||||||
|
|
||||||
g = font[name]
|
g = font[name]
|
||||||
|
|
||||||
# color
|
# color
|
||||||
|
|
|
||||||
Reference in a new issue