summaryrefslogtreecommitdiff
path: root/misc/rf-scripts
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2018-02-18 05:14:27 +0300
committerRasmus Andersson <rasmus@notion.se>2018-02-18 05:14:27 +0300
commit7200f09834eb6a67424cdbeb8a627fd878a570e4 (patch)
tree581b9551fd43a1dbfb5dd0a108a300cf1adeb4b6 /misc/rf-scripts
parent88d04e166f15f951839e7b915d0dfda08cd3e6b9 (diff)
downloadinter-7200f09834eb6a67424cdbeb8a627fd878a570e4.tar.xz
AdjustWidth.py rf script
Diffstat (limited to 'misc/rf-scripts')
-rw-r--r--misc/rf-scripts/AdjustWidth.py6
1 files changed, 3 insertions, 3 deletions
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