I thought I’ve seen in a blog post that it’s possible to get a glyph by its unicode char (something like Font.glyphs[u"ก"]) but I cannot find it, nor make it work anyhow. Did I just dream that?
Another thing: I usually encode my .py files with the # -*- coding: utf-8 -*- snippet, but I cannot make use of it in the Macro Panel, where I’d love to quickly sketch especially complex unicode handlings. This for example:
#-*- coding: utf-8 -*-
print u"ä" # >>> ä
But maybe I’m confusing things here. this works for example: print u'\u2713' # >>> ✓
Edit:
Ah, almost there. I can use repr() and ask font.glyphs by unicode …
this works:
print Font.glyphs[u'\u0e01'] # --> <GSGlyph "koKai-thai" with 1 layers>
Exactly, but weirdly enough, of course this was the very first thing I tried before opening this thread and it didn’t work. And my “solution” is stupid anyway, it just converts the char back and forth
Yeah, I peek in there all the time =)
I think my environment is just too messy sometimes, you know different computers in different offices, different OS and Glyphs Versions, then such things like comments before the encoding declaration in some macro panel tab … it all adds up to confusion on my side. my bad. sorry.
But speaking of Macro Tabs: I’m probably the only one (and maybe @Tosche) who got more than 20 tabs in the Macro Panel. It would be amazing if you could scroll through the tabs if you got too many.
Currently I have to resize the window with the option key to a ridiculous size way off screen in order to access tab number 21+, and recently I wanted to clean up old scraps tabs, but after any Glyphs restart they where all there again each time, so I gave up cleaning those