Skip to content

Commit

Permalink
also export UFO
Browse files Browse the repository at this point in the history
  • Loading branch information
schriftgestalt committed Oct 4, 2018
1 parent 13e77fb commit 2b208f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Instances/Batch Generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Batch Generate Fonts.
"""

from GlyphsApp import OTF, TTF, WOFF, WOFF2, EOT
from GlyphsApp import OTF, TTF, WOFF, WOFF2, EOT, UFO

fileFolder = "~/Desktop/files"

Expand Down Expand Up @@ -40,4 +40,8 @@
for instance in font.instances:
print "== Exporting Web =="
print instance.generate(Format=Web_OutlineFormat, FontPath=os.path.expanduser(web_path), AutoHint=TTF_AutoHint, RemoveOverlap=RemoveOverlap, UseSubroutines=UseSubroutines, UseProductionNames=UseProductionNames, Containers=[WOFF, WOFF2, EOT])
print
for instance in font.instances:
print "== Exporting UFO =="
print instance.generate(Format=UFO, FontPath=os.path.expanduser(ufo_path), UseProductionNames=UseProductionNames)
print

0 comments on commit 2b208f7

Please sign in to comment.