fonttools/Scripts/RoboFabUFO/ImportFontFromUFO.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

12 lines
271 B
Python

#FLM: Import .ufo File into FontLab
from robofab.world import NewFont
from robofab.interface.all.dialogs import GetFolder
path = GetFolder("Please select a .ufo")
if path is not None:
font = NewFont()
font.readUFO(path, doProgress=True)
font.update()
print 'DONE!'