From 069564c5ac43b5c534e1c5f08ae0975c85065241 Mon Sep 17 00:00:00 2001 From: Adam Hooper Date: Wed, 3 Jul 2013 10:18:26 -0400 Subject: [PATCH] Set glyph widths automatically --- lib/fontcustom/scripts/generate.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/fontcustom/scripts/generate.py b/lib/fontcustom/scripts/generate.py index 36e8d105..c03f03fd 100755 --- a/lib/fontcustom/scripts/generate.py +++ b/lib/fontcustom/scripts/generate.py @@ -75,15 +75,19 @@ # glyph.left_side_bearing = KERNING # glyph.right_side_bearing = KERNING - glyph.width = 512 + #glyph.width = 512 # possible optimization? # glyph.simplify() # glyph.round() + glyph.left_side_bearing = glyph.right_side_bearing = 0 + glyph.round() files.append(name) cp += 1 + f.autoWidth(0, 0, 512) + if args.nohash: fontfile = outdir + '/' + args.name else: