fonttools/Scripts/RoboFabUFO/ExportFontToUFO.py
Erik van Blokland 617945dcf1 The scripts folder for FontLab as they shipped with Fab 1.1.1.
git-svn-id: http://svn.robofab.com/trunk@22 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-16 08:14:00 +00:00

20 lines
488 B
Python

#FLM: Export Current Font to UFO Format
"""Export the current font to UFO format.
"""
from robofab.world import CurrentFont
f = CurrentFont()
if f.path is None:
from robofab.interface.all.dialogs import PutFile
path = PutFile("Please choose a name for the .ufo")
if path is None:
path = -1 # signal the code below the user has cancelled
else:
# writeUFO() will firgure out the destination .ufo path
path = None
if path != -1:
f.writeUFO(path, doProgress=True)
print 'DONE!'