078: work on font.getGlyphOrder() instead
Gets the names from post or CFF tables, so it works for TTFs and OTFs.
@@ -74,9 +74,7 @@ def com_google_fonts_check_078(ttFont):
"glyph names.")
else:
failed = False
- for subtable in ttFont['cmap'].tables:
- for item in subtable.cmap.items():
- name = item[1]
+ for name in ttFont.getGlyphOrder():
if len(name) > 109:
failed = True
yield FAIL, ("Glyph name is too long:" " '{}'").format(name)
