diff options
-rw-r--r-- | scripts/lib/fontbuild/italics.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/fontbuild/italics.py b/scripts/lib/fontbuild/italics.py index d32630a..86bdc53 100644 --- a/scripts/lib/fontbuild/italics.py +++ b/scripts/lib/fontbuild/italics.py @@ -7,7 +7,7 @@ from alignpoints import alignCorners def italicizeGlyph(f, g, angle=10, stemWidth=185): glyph = f[g.name] - slope = np.tanh([math.pi * angle / 180])[0] + slope = np.tanh(math.pi * angle / 180) # determine how far on the x axis the glyph should slide # to compensate for the slant. -600 is a magic number @@ -265,4 +265,4 @@ def condenseGlyph(glyph, scale=.8, stemWidth=185): gOut = fitGlyph(glyph, gOut, subsegments) for i,seg in enumerate(gOut): gOut[i].points[0].y = glyph[i].points[0].y - return gOut
\ No newline at end of file + return gOut |