From f0446ecc7eee2fe55e4f81563e035f8bee01b748 Mon Sep 17 00:00:00 2001 From: James Godfrey-Kittle Date: Wed, 17 Jun 2015 11:25:49 -0700 Subject: Script updates from Paratype 15/06/16. --- scripts/lib/fontbuild/Build.py | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'scripts/lib/fontbuild/Build.py') 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: -- cgit v1.2.3