Closed justvanrossum closed 2 years ago
Hm, fonttools actually does smarter glyph name synthesys for encoded glyphs (using AGL and uniXXXX names). Perhaps this change is too simplistic.
I don't think we have access to a (cached) TTFont instance to make a glyph name -> glyph ID mapping efficiently possible.
Alternatively, fs.appendGlyph()
could accept glyph ids by means of an isinstance(glyphName, int)
check.
Support indexes as int
is perfect
LGTM :)
Assuming fonttools-made glyph names.