Hello, is there some way of taking unicode glyph names (such as uni041B
) and turning them into nice glyph names – within a script? Essentially, I would like to open a new tab with Font.newTab("/uni041B")
, but this doesn’t work.
Thanks!
Edit: a simple "\u041B"
does the trick.
Edit 2: Almost. I got this to work:
if glyph_name.startswith("uni"):
glyph_name = chr(int(glyph_name.replace("uni", ""), 16))