Get Unicode value for glyph name

Hello, I am looking for a function that takes a glyph name and returns the default Unicode value assigned by Glyphs.

Or, more generally, I am looking for a way to map legacy names to current names (so, for instance, catch “ia-cy” if I have “ya-cy” given). I thought the best way to do this is by comparing the assigned Unicode value. Any pointers? Thanks!

Two minutes more of searching the method reporter, I answered my own question: there is

Glyphs.glyphInfoForName()

which returns a glyph info object with the current name for legacy names. Sorry for the disturbance.

1 Like