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
504 B
Python
Executable File

from robofab.world import SelectFont, CurrentFont
from robofab.interface.all.dialogs import ProgressBar
myFactor = .36
myMin = SelectFont('Select source font one:')
if myMin:
myMax = SelectFont('Select source font two:')
if myMax:
myDest = SelectFont('Select destination font:')
if myDest:
myMinkern = myMin.kerning
myMaxkern = myMax.kerning
myDestkern = myDest.kerning
myDestkern.interpolate(myMinkern,myMaxkern,myFactor,clearExisting=True)
myDest.update()
print "Done"