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

1 line
479 B
Python
Executable File

#FLM: Auto starting points
from robofab.world import CurrentFont
from robofab.interface.all.dialogs import ProgressBar
f = CurrentFont()
tickCount = len(f)
bar = ProgressBar("Setting start points...", tickCount)
tick = 0
for c in f:
if c:
bar.label(c.name)
bar.tick(tick)
c.correctDirection()
c.autoContourOrder()
for contour in c:
contour.autoStartSegment()
tick = tick + 1
bar.close()
f.update()
print 'done'