Erik van Blokland 3646055ea2 initial import
git-svn-id: http://svn.robofab.com/trunk@1 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-07 17:40:34 +00:00

21 lines
515 B
Python
Executable File

#FLM: Copy all glyphs to other font
# werkt helaas nog steeds niet...
from robofab.world import CurrentFont, CurrentGlyph
from robofab.interface.all.dialogs import SelectFont
mySource = CurrentFont()
myDest = SelectFont('Select a destination font:')
if myDest:
for myGlyph in mySource:
myGlyphname = myGlyph.name
if myDest.has_key(myGlyphname):
myDest.removeGlyph(myGlyphname)
myDest[myGlyphname].appendGlyph(mySource[myGlyphname])
# myDest[myGlyphname].mark = 52
myDest.update()
print "Done"