summaryrefslogtreecommitdiff
path: root/scripts/lib/fontbuild/Build.py
diff options
context:
space:
mode:
authorJames Godfrey-Kittle <jamesgk@google.com>2015-03-10 09:47:54 -0700
committerJames Godfrey-Kittle <jamesgk@google.com>2015-04-16 12:16:32 -0700
commit1b89814e5d8dbd9ceaeea1d59780e78f5a73f70f (patch)
treec6a74b96606f32878842e36c96a6b0d0cd297918 /scripts/lib/fontbuild/Build.py
parent49c95b1aedb9bf2fe4023d595475ec5c80319ac0 (diff)
Add mark, mkmk features before generating fonts.
No idea why we weren't doing this before -- these features are necessary for proper rendering.
Diffstat (limited to 'scripts/lib/fontbuild/Build.py')
-rw-r--r--scripts/lib/fontbuild/Build.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/lib/fontbuild/Build.py b/scripts/lib/fontbuild/Build.py
index fcdb3c1..5c6ffca 100644
--- a/scripts/lib/fontbuild/Build.py
+++ b/scripts/lib/fontbuild/Build.py
@@ -157,6 +157,8 @@ class FontProject:
readFeatureFile(f, self.ot_kerningclasses)
log(">> Generating font files")
+ GenerateFeature_mark(f)
+ GenerateFeature_mkmk(f)
ufoName = self.generateOutputPath(f, "ufo")
f.save(ufoName)
@@ -172,12 +174,6 @@ class FontProject:
otFont = fontforge.open(otfName)
otFont.generate(self.generateOutputPath(f, "ttf"))
- if self.buildFEA:
- log(">> Generating FEA files")
- GenerateFeature_mark(f)
- GenerateFeature_mkmk(f)
- writeFeatureFile(f, self.generateOutputPath(f, "fea"))
-
def transformGlyphMembers(g, m):
g.width = int(g.width * m.a)