summaryrefslogtreecommitdiff
path: root/scripts/lib/fontbuild/Build.py
diff options
context:
space:
mode:
authorJames Godfrey-Kittle <jamesgk@google.com>2015-06-17 11:25:49 -0700
committerJames Godfrey-Kittle <jamesgk@google.com>2015-06-17 12:25:03 -0700
commitf0446ecc7eee2fe55e4f81563e035f8bee01b748 (patch)
tree21f5a02e3f7b98ddfc909c554727f1e35151aa31 /scripts/lib/fontbuild/Build.py
parent68a71223632aa384d09b2cb27e61830faeec46e6 (diff)
Script updates from Paratype 15/06/16.
Diffstat (limited to 'scripts/lib/fontbuild/Build.py')
-rw-r--r--scripts/lib/fontbuild/Build.py19
1 files changed, 14 insertions, 5 deletions
diff --git a/scripts/lib/fontbuild/Build.py b/scripts/lib/fontbuild/Build.py
index 6afc08f..2a7e670 100644
--- a/scripts/lib/fontbuild/Build.py
+++ b/scripts/lib/fontbuild/Build.py
@@ -28,13 +28,14 @@ class FontProject:
self.diacriticList = [line.strip() for line in diacriticList if not line.startswith("#")]
self.ot_classes = open(self.basedir + "/" + self.config.get("res","ot_classesfile")).read()
self.ot_kerningclasses = open(self.basedir + "/" + self.config.get("res","ot_kerningclassesfile")).read()
- self.ot_features = open(self.basedir + "/" + self.config.get("res","ot_featuresfile")).read()
+ #self.ot_features = open(self.basedir + "/" + self.config.get("res","ot_featuresfile")).read()
self.builddir = "out"
self.decompose = self.config.get("glyphs","decompose").split()
self.predecompose = self.config.get("glyphs","predecompose").split()
self.lessItalic = self.config.get("glyphs","lessitalic").split()
self.deleteList = self.config.get("glyphs","delete").split()
+ self.noItalic = self.config.get("glyphs","noitalic").split()
self.buildnumber = self.loadBuildNumber()
self.buldVFBandFEA = False
@@ -82,6 +83,7 @@ class FontProject:
narrowAmmount = .96
i = 0
for g in f.glyphs:
+
i += 1
if i % 10 == 0: print g.name
@@ -104,14 +106,21 @@ class FontProject:
g.RemoveOverlap()
# not sure why FontLab sometimes refuses, seems to work if called twice
-
+
+
if (g.name in self.lessItalic):
italicizeGlyph(g, 9, stemWidth=stemWidth)
- elif g.name != ".notdef":
+ elif False == (g.name in self.noItalic):
italicizeGlyph(g, 10, stemWidth=stemWidth)
+ #elif g.name != ".notdef":
+ # italicizeGlyph(g, 10, stemWidth=stemWidth)
+
g.RemoveOverlap()
- g.width += 10
- fl.UpdateGlyph(i-1)
+
+ if g.width != 0:
+ g.width += 10
+
+ fl.UpdateGlyph(i-1)
if swapSuffixes != None:
for swap in swapSuffixes: