ttFont: raise KeyError from getGlyphID instead of returning None

Fixes #3030
This commit is contained in:
Cosimo Lupo 2023-03-10 11:38:55 +00:00
parent d77c8901c8
commit b137fd9616
No known key found for this signature in database
GPG Key ID: DF65A8A5A119C9A8

View File

@ -660,6 +660,7 @@ class TTFont(object):
return int(glyphName[5:])
except (NameError, ValueError):
raise KeyError(glyphName)
raise
def getGlyphIDMany(self, lst):
"""Converts a list of glyph names into a list of glyph IDs."""