diff options
Diffstat (limited to 'scripts/lib/fontbuild')
-rw-r--r-- | scripts/lib/fontbuild/Build.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lib/fontbuild/Build.py b/scripts/lib/fontbuild/Build.py index da44109..424c49f 100644 --- a/scripts/lib/fontbuild/Build.py +++ b/scripts/lib/fontbuild/Build.py @@ -183,7 +183,8 @@ class FontProject: log(">> Generating OTF file") newFont = OpenFont(ufoName) otfName = self.generateOutputPath(f, "otf") - if saveOTF(newFont, otfName, autohint=self.autohintOTF) and self.buildTTF: + builtSuccessfully = saveOTF(newFont, otfName, autohint=self.autohintOTF) + if builtSuccessfully and self.buildTTF: log(">> Generating TTF file") import fontforge otFont = fontforge.open(otfName) |