summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2017-10-06 18:40:17 +0300
committerRasmus Andersson <rasmus@notion.se>2017-10-06 18:40:17 +0300
commitc489e7ba490ffe7a3ff37d2d293ba34ed9a011c1 (patch)
treed4b93ebd849f560fdb78706390d09e6d660e45ad
parent1eb9d53c4ddefc752314d3efa140cca4984c29ff (diff)
downloadinter-c489e7ba490ffe7a3ff37d2d293ba34ed9a011c1.tar.xz
ufocompile: Adjust stem width hint for oblique generation
-rwxr-xr-xmisc/ufocompile9
1 files changed, 6 insertions, 3 deletions
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: