|
Revision 1, 0.6 kB
(checked in by erik, 3 years ago)
|
initial import
|
- Property svn:executable set to
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
from robofab.world import SelectFont |
|---|
| 4 |
from robofab.interface.all.dialogs import ProgressBar |
|---|
| 5 |
|
|---|
| 6 |
mySource = SelectFont("Select source font") |
|---|
| 7 |
myDestination = SelectFont("Select destination font") |
|---|
| 8 |
|
|---|
| 9 |
if mySource is not None and myDestination is not None: |
|---|
| 10 |
bar = ProgressBar('Copying sidebearings...', len(mySource)) |
|---|
| 11 |
for myChar in mySource: |
|---|
| 12 |
myCharname = myChar.name |
|---|
| 13 |
if myDestination.has_key(myCharname): |
|---|
| 14 |
myDestination[myCharname].leftMargin = myChar.leftMargin |
|---|
| 15 |
myDestination[myCharname].rightMargin = myChar.rightMargin |
|---|
| 16 |
myDestination[myCharname].mark = 26 |
|---|
| 17 |
bar.tick() |
|---|
| 18 |
|
|---|
| 19 |
myDestination.update() |
|---|
| 20 |
bar.close() |
|---|