diff options
Diffstat (limited to 'scripts/lib/fontbuild/italics.py')
-rw-r--r-- | scripts/lib/fontbuild/italics.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/lib/fontbuild/italics.py b/scripts/lib/fontbuild/italics.py index 86bdc53..77e205a 100644 --- a/scripts/lib/fontbuild/italics.py +++ b/scripts/lib/fontbuild/italics.py @@ -6,6 +6,8 @@ import math from alignpoints import alignCorners def italicizeGlyph(f, g, angle=10, stemWidth=185): + unic = g.unicode #save unicode + glyph = f[g.name] slope = np.tanh(math.pi * angle / 180) @@ -23,6 +25,9 @@ def italicizeGlyph(f, g, angle=10, stemWidth=185): transformFLGlyphMembers(f[g.name], m) + if unic > 0xFFFF: #restore unicode + g.unicode = unic + def italicize(glyph, angle=12, stemWidth=180, xoffset=-50): CURVE_CORRECTION_WEIGHT = .03 |