diff options
author | Rasmus Andersson <rasmus@notion.se> | 2018-01-08 21:26:09 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2018-01-08 21:26:09 +0300 |
commit | 76f983adaee6116ce9775d959be6e8bbad334f7d (patch) | |
tree | bd6bc56cac2205d1518c909b0b8a385067adaa0a /misc/pylib/fontbuild/Build.pyx | |
parent | 96fb366982ab2b95bc40ed9f93e47da752290ad0 (diff) | |
download | inter-76f983adaee6116ce9775d959be6e8bbad334f7d.tar.xz |
Fixes to font metadata, including addition of some OS/2 panose information
Diffstat (limited to 'misc/pylib/fontbuild/Build.pyx')
-rw-r--r-- | misc/pylib/fontbuild/Build.pyx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/misc/pylib/fontbuild/Build.pyx b/misc/pylib/fontbuild/Build.pyx index 2832aa28e..d2629b337 100644 --- a/misc/pylib/fontbuild/Build.pyx +++ b/misc/pylib/fontbuild/Build.pyx @@ -85,10 +85,10 @@ class FontProject: return os.path.join(path, "%s-%s.%s" % (family, style, ext)) def generateFont(self, mix, names, italic=False, swapSuffixes=None, stemWidth=185, - italicMeanYCenter=-825, italicNarrowAmount=1): + italicMeanYCenter=-825, italicNarrowAmount=1, panose=[]): n = names.split("/") - log("---------------------\n%s %s\n----------------------" %(n[0],n[1])) + log("---------------------\n%s, %s\n----------------------" %(n[0],n[1])) if isinstance( mix, Mix): log(">> Mixing masters") @@ -164,7 +164,7 @@ class FontProject: 'license': getcfg('license'), 'licenseURL': getcfg('licenseURL'), 'italicAngle': float(getcfg('italicAngle', '-12')), - }) + }, panose) if not self.compatible: cleanCurves(f) @@ -187,9 +187,9 @@ class FontProject: glyphOrder.append(glyphName) if self.buildOTF: - log(">> Generating OTF file") newFont = OpenFont(ufoName) otfName = self.generateOutputPath(f, "otf") + log(">> Generating OTF file %s" % otfName) saveOTF(newFont, otfName, glyphOrder) def generateTTFs(self): @@ -208,9 +208,9 @@ class FontProject: for font in fonts: fonts_to_quadratic([font], max_err_em=max_err, dump_stats=True, reverse_direction=True) - log(">> Generating TTF files") for font in fonts: ttfName = self.generateOutputPath(font, "ttf") + log(">> Generating TTF file %s" % ttfName) log(os.path.basename(ttfName)) glyphOrder = [n for n in self.glyphOrder if n in font] saveOTF(font, ttfName, glyphOrder, truetype=True) |