tools/gen-glyphinfo: print warning instead of crash when a glyph is in glyphOrder but not in the font

This commit is contained in:
Rasmus Andersson 2018-09-30 19:53:58 -07:00
parent 0c09885c35
commit 72a93ebd23

View file

@ -81,6 +81,13 @@ def main():
if name in visitedGlyphNames:
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]
# color