summaryrefslogtreecommitdiff
path: root/scripts/lib/fontbuild
diff options
context:
space:
mode:
authorRoozbeh Pournader <roozbeh@google.com>2015-04-17 10:09:51 -0700
committerRoozbeh Pournader <roozbeh@google.com>2015-04-17 10:09:51 -0700
commit502d6bd17afead6c44cbea9358725531c4375527 (patch)
tree77d4bd1265473a0d09aa2bb399ae395df16a6fde /scripts/lib/fontbuild
parent5164de2eae3c23b68004585db989088cd28d84db (diff)
Minor style modification in fontbuild/Build.py.
Diffstat (limited to 'scripts/lib/fontbuild')
-rw-r--r--scripts/lib/fontbuild/Build.py3
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)