Does anyone know how to create a new glyph in the macro-panel?
Font.glyphs.append(newGlyph)
Thanks.
Does anyone know how to create a new glyph in the macro-panel?
Font.glyphs.append(newGlyph)
Thanks.
Hi
You can do it like this:
newGlyph = GSGlyph(“myGlyphName”)
Font.glyphs.append(newGlyph)
or
Font.glyphs.append(GSGlyph(“myGlyphName”))
Awesome! Thanks
Hi Georg,
if i get this right, Font.glyphs is a python list, is it? So how can i delete a glyph? Font.glyphs.remove(oldGlyph) - as i would asume - doesn’t work…
Thanks
Just as you would remove something from a regular list.
del(font.glyphs[oldGlyph.name])
or
del(font.glyphs[index])
Thanks! - and sorry; python is still a bit confusing for me … it get’s better.