From 7200f09834eb6a67424cdbeb8a627fd878a570e4 Mon Sep 17 00:00:00 2001 From: Rasmus Andersson Date: Sat, 17 Feb 2018 18:14:27 -0800 Subject: AdjustWidth.py rf script --- misc/rf-scripts/AdjustWidth.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'misc') diff --git a/misc/rf-scripts/AdjustWidth.py b/misc/rf-scripts/AdjustWidth.py index beee877c8..883a821b5 100644 --- a/misc/rf-scripts/AdjustWidth.py +++ b/misc/rf-scripts/AdjustWidth.py @@ -8,10 +8,10 @@ from math import ceil, floor if __name__ == "__main__": font = CurrentFont() ignoreGlyphsWithoutContours = True # like spaces - print "Resizing glyph margins for %r" % font + print "# Resizing glyph margins for %r" % font # how much to add or remove from each glyph's margin - A = 12 + A = -4 if font is not None: # first, check for errors and collect glyphs we should adjust @@ -35,7 +35,7 @@ if __name__ == "__main__": # continue if g.width % 4 != 0: - print '"%s": ["error", "misaligned"],' % (g.name) + print 'error: %s is misaligned; width = %g (not an even multiple of 4)' % (g.name, g.width) errors += 1 continue -- cgit v1.2.3