root/trunk/Documentation/TypoTechnica 2005/scripts Folder/Paulus - font/build accents selected.py
| Revision 1, 399 bytes (checked in by erik, 3 years ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | #FLM: Build accents for selected glyphs |
| 2 | |
| 3 | from robofab.world import CurrentFont |
| 4 | from robofab.interface.all.dialogs import ProgressBar |
| 5 | |
| 6 | myFont = CurrentFont() |
| 7 | |
| 8 | myGlyphs = myFont.selection |
| 9 | |
| 10 | myBar = ProgressBar('Building accents...', len(myGlyphs)) |
| 11 | for myGlyph in myGlyphs: |
| 12 | myFont.generateGlyph(myGlyph, replace=True, printErrors=True) |
| 13 | myFont[myGlyph].update() |
| 14 | myBar.tick() |
| 15 | myBar.close() |
| 16 | print "done" |
Note: See TracBrowser for help on using the browser.
