From c489e7ba490ffe7a3ff37d2d293ba34ed9a011c1 Mon Sep 17 00:00:00 2001 From: Rasmus Andersson Date: Fri, 6 Oct 2017 08:40:17 -0700 Subject: ufocompile: Adjust stem width hint for oblique generation --- misc/ufocompile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'misc') diff --git a/misc/ufocompile b/misc/ufocompile index 6da30a5ac..6cd0af225 100755 --- a/misc/ufocompile +++ b/misc/ufocompile @@ -136,6 +136,9 @@ def main(): proj.buildOTF = True # name syntax: family/longstyle/shortstyle/subfamilyAbbrev + # italicNarrowAmount controls scale on the x axis. 1.0 means no scaling. + # italicMeanYCenter controls how far on the x axis the glyph should slide + # to compensate for the slant. if ALL or 'regular' in styles: proj.generateFont(rg.font, "%s/Regular/Regular/Rg" % FAMILYNAME) @@ -154,7 +157,7 @@ def main(): proj.generateFont( Mix2([rg, bl], 0.35, glyphSpecializations.get('medium', {})), "%s/Medium Italic/Italic/Me" % FAMILYNAME, - italic=True, stemWidth=320, italicMeanYCenter=-825, italicNarrowAmount=1) + italic=True, stemWidth=300, italicMeanYCenter=-825, italicNarrowAmount=1) if ALL or 'bold' in styles: @@ -166,7 +169,7 @@ def main(): proj.generateFont( Mix2([rg, bl], 0.65, glyphSpecializations.get('bold', {})), "%s/Bold Italic/Bold Italic/Bd" % FAMILYNAME, - italic=True, stemWidth=384, italicMeanYCenter=-825, italicNarrowAmount=1) + italic=True, stemWidth=350, italicMeanYCenter=-825, italicNarrowAmount=1) if ALL or 'black' in styles: @@ -174,7 +177,7 @@ def main(): if ALL or 'blackitalic' in styles: proj.generateFont(bl.font, "%s/Black Italic/Italic/Bl" % FAMILYNAME, - italic=True, stemWidth=290, italicMeanYCenter=-825, italicNarrowAmount=1) + italic=True, stemWidth=400, italicMeanYCenter=-825, italicNarrowAmount=1) # generate TTFs if args.no_ttf == False: -- cgit v1.2.3