|
Revision 1, 0.5 kB
(checked in by erik, 3 years ago)
|
initial import
|
- Property svn:executable set to
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 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 |
|
|---|
| 18 |
myDest.update() |
|---|
| 19 |
|
|---|
| 20 |
print "Done" |
|---|