summaryrefslogtreecommitdiff
path: root/scripts/build-v2.py
diff options
context:
space:
mode:
authorJames Godfrey-Kittle <jamesgk@google.com>2015-11-03 13:28:11 -0800
committerJames Godfrey-Kittle <jamesgk@google.com>2015-11-20 18:18:00 -0800
commite8c9488af391731a94e9c47b63e926f3d7e14c6e (patch)
treea8839563aaf04c630553c97e651a80971a3e8059 /scripts/build-v2.py
parent21ef39becd62519e32accdf2f07554571fc46bfa (diff)
Generate TTFs with ufo2ft
Diffstat (limited to 'scripts/build-v2.py')
-rw-r--r--scripts/build-v2.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/build-v2.py b/scripts/build-v2.py
index 58842d6..0ef86e9 100644
--- a/scripts/build-v2.py
+++ b/scripts/build-v2.py
@@ -91,8 +91,7 @@ proj = FontProject(rg.font, BASEDIR, "res/roboto.cfg", th.ffont)
FAMILYNAME = "Roboto"
proj.buildOTF = True
-#proj.autohintOTF = True
-proj.buildTTF = True
+#proj.compatible = True
proj.generateFont(th.font, "%s/Thin/Regular/Th"%FAMILYNAME)
proj.generateFont(Mix([th, rg], 0.45), "%s/Light/Regular/Lt"%FAMILYNAME)
@@ -119,6 +118,10 @@ proj.generateFont(Mix([rg, bd], RPoint(1.125, 1.0)),
"%s/Black Italic/Bold Italic/Bk"%FAMILYNAME,
italic=True, stemWidth=290)
+# unfortunately some condensed forms (*.cn) of glyphs are not compatible with
+# their original forms, so we can't convert all fonts together compatibly
+proj.generateTTFs()
+
thcn1 = Master(condenseFont(th.font, .84, 40))
cn1 = Master(rg.ffont.addDiff(thcn1.ffont, th.ffont))
bdcn1 = Master(bd.ffont.addDiff(thcn1.ffont, th.ffont))
@@ -143,4 +146,4 @@ proj.generateFont(Mix([cn1, bdcn1], RPoint(0.75, 0.75)),
"%s Condensed/Bold Italic/Bold Italic/Rg"%FAMILYNAME,
italic=True, swapSuffixes=[".cn"], stemWidth=240)
-sys.exit(0)
+proj.generateTTFs()