root/trunk/Documentation/TypoTechnica 2005/scripts Folder/Paulus - font/copy glyphs to other font.py

Revision 1, 0.5 kB (checked in by erik, 3 years ago)

initial import

  • Property svn:executable set to
Line 
1 #FLM: Copy all glyphs to other font
2
3 # werkt helaas nog steeds niet...
4
5 from robofab.world import CurrentFont, CurrentGlyph
6 from robofab.interface.all.dialogs import SelectFont
7
8 mySource = CurrentFont()
9 myDest = SelectFont('Select a destination font:')
10
11 if myDest:
12         for myGlyph in mySource:
13                 myGlyphname = myGlyph.name
14                 if myDest.has_key(myGlyphname):
15                         myDest.removeGlyph(myGlyphname)
16                         myDest[myGlyphname].appendGlyph(mySource[myGlyphname])
17                         # myDest[myGlyphname].mark = 52
18                         myDest.update()
19
20 print "Done"
Note: See TracBrowser for help on using the browser.