Add UC unicodes for LC glyphs

Hello, I started out making an LC-only font. I would like to add the UC unicodes to the lowercase glyphs.

I know that Glyphs automatically adds both UC and LC unicodes if only the UC glyph is present in the font. Is it also possible if only the LC glyph is present, by script? I can’t immediately think of a code snippet that would do this.

I don’t want to rename my glyphs, since that would break my git history.

Thanks!

This should help:

glyph = Layer.parent
lc = glyph.glyphInfo.unicharString()
uc = lc.upper()
ucInfo = Glyphs.glyphInfoForUnicode(ord(uc))
print(uc, ucInfo, ucInfo.name, ucInfo.unicode)

Thank you very much! I was abgebogen on a Holzweg using GSGlyphsInfo instead of GSGlyphInfo.

1 Like