Get glyph by id?

Hi! Is it possible to get glyph by glyph.id other than iterating over all glyphs and comparing each? font.glyphs[ glyph.id ] would be convenient but gives None

Yes, you can use the pyobjc method described here: GSFont Class Reference

font.glyphForId_(glyph.id)
3 Likes

I knew there’s got to be something like this, thanks!