mirror of
https://github.com/rsms/inter.git
synced 2024-11-17 07:47:33 +01:00
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:
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue