Hi, I want to have more controle over the TemplateGlyphs. So I making my own tool. It change the
public.glyphOrder. But it doesn't show my new TemplateGlyphs until the font is closed and reopened.
f.update()doesn't do the trick.
Who can help?
Extra question about the TemplateGlyphs:
If I add for example
Kacuteto the font, it will not add automatic the unicode value to the glyph. Can I changed this?
When does RoboFont show the preview font in the TemplateGlyphs? Name, unicode, combination?
I tested around to get the Kacute as a TemplateGlyph [used my own font as previewFont, it contains a Kacute + unicode], no succes…
This must work:
f = CurrentFont() glyphOrder = f.glyphOrder glyphOrder.append("addedGlyph") f.glyphOrder = glyphOrder
The glyph name to unicode are extracted from the fontTools
you can add custom unicode by adding a unicode value to the glyph name:
so add a glyph
No really, it remove also the existing templateGlyphs. But:
glyphOrder =  for glyph in f.lib['public.glyphOrder']: glyphOrder.append(glyph) for glyph in myListOfGlyphs: glyphOrder.append(glyph) f.glyphOrder = glyphOrder