AdjustWidth.py rf script
This commit is contained in:
parent
88d04e166f
commit
7200f09834
1 changed files with 3 additions and 3 deletions
|
|
@ -8,10 +8,10 @@ from math import ceil, floor
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
font = CurrentFont()
|
font = CurrentFont()
|
||||||
ignoreGlyphsWithoutContours = True # like spaces
|
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
|
# how much to add or remove from each glyph's margin
|
||||||
A = 12
|
A = -4
|
||||||
|
|
||||||
if font is not None:
|
if font is not None:
|
||||||
# first, check for errors and collect glyphs we should adjust
|
# first, check for errors and collect glyphs we should adjust
|
||||||
|
|
@ -35,7 +35,7 @@ if __name__ == "__main__":
|
||||||
# continue
|
# continue
|
||||||
|
|
||||||
if g.width % 4 != 0:
|
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
|
errors += 1
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue