Open
Description
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
f = CurrentFont()
f.insertGlyph(f['a'], 'b')
new_glyph = f['b']
new_glyph.moveBy((999,999))
- With
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']
Metadata
Metadata
Assignees
Labels
No labels
Activity