summaryrefslogtreecommitdiff
path: root/scripts/build-v2.py
diff options
context:
space:
mode:
authorJames Godfrey-Kittle <jamesgk@google.com>2015-04-08 16:14:56 -0700
committerJames Godfrey-Kittle <jamesgk@google.com>2015-04-16 12:16:33 -0700
commit56ad4064e8eeff6c320952daef8767188ae7fa63 (patch)
tree5907c6682cb65a0c2ad778605376e95ba8dc436b /scripts/build-v2.py
parent40f2f9fdaa46d1773ebc805150da70c9acfeac3e (diff)
Update scripts based on 03/31 delivery.
Diffstat (limited to 'scripts/build-v2.py')
-rw-r--r--scripts/build-v2.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/build-v2.py b/scripts/build-v2.py
index 0c9bfe0..75f9f93 100644
--- a/scripts/build-v2.py
+++ b/scripts/build-v2.py
@@ -49,7 +49,8 @@ def condenseFont(font, scale=.8, stemWidth=185):
m = Transform(xscale, 0, 0, 1, 20, 0)
g.transform(m)
transformFLGlyphMembers(g,m,transformAnchors=False)
- g.width += 40
+ if g.width != 0:
+ g.width += 40
return f
@@ -75,7 +76,7 @@ proj.generateFont(Mix([rg,bd], RPoint(1.125, 1.0)),"%s/Black/Bold/Bk"%FAMILYNAME
proj.generateFont(th.font,"%s/Thin Italic/Italic/Th"%FAMILYNAME, italic=True, stemWidth=80)
proj.generateFont(Mix([th,rg], 0.45),"%s/Light Italic/Italic/Lt"%FAMILYNAME, italic=True, stemWidth=120)
proj.generateFont(Mix([th,rg], RPoint(0.90, 0.92)),"%s/Italic/Italic/Rg"%FAMILYNAME, italic=True, stemWidth=185)
-proj.generateFont(Mix([rg,bd], 0.35),"%s/Medium Italic/Bold Italic/Lt"%FAMILYNAME, italic=True, stemWidth=230)
+proj.generateFont(Mix([rg,bd], 0.35),"%s/Medium Italic/Italic/Lt"%FAMILYNAME, italic=True, stemWidth=230)
proj.generateFont(Mix([rg,bd], RPoint(0.73, 0.73)),"%s/Bold Italic/Bold Italic/Rg"%FAMILYNAME, italic=True, stemWidth=290)
proj.generateFont(Mix([rg,bd], RPoint(1.125, 1.0)),"%s/Black Italic/Bold Italic/Bk"%FAMILYNAME, italic=True, stemWidth=290)