Open ryanbugden opened 3 months ago
It would be useful to be able to store the just-inserted glyph into a variable on the fly.
f = CurrentFont() new_glyph = f.insertGlyph(f['a'], 'b') new_glyph.moveBy((999,999))
Currently, these are the options:
With insertGlyph
insertGlyph
f = CurrentFont() f.insertGlyph(f['a'], 'b') new_glyph = f['b'] new_glyph.moveBy((999,999))
With newGlyph
newGlyph
f = CurrentFont() new_glyph = f.newGlyph('b') new_glyph.appendGlyph(f['a']) new_glyph.width = f['a'].width new_glyph.moveBy((999,999))
The best way probably, but not really documented:
f = CurrentFont() new_glyph = f['b'] = f['a']
It would be useful to be able to store the just-inserted glyph into a variable on the fly.
Currently, these are the options:
With
insertGlyph
With
newGlyph
The best way probably, but not really documented: