X-Git-Url: https://git.draconx.ca/gitweb/scripts.git/blobdiff_plain/a32c6119947e576c9d9456b736a4b71537bcd4f1..5d3f16e91969123b8960e6806a9eade8a616f064:/mplus-t-gen.py diff --git a/mplus-t-gen.py b/mplus-t-gen.py index d95702a..b5c2b9d 100755 --- a/mplus-t-gen.py +++ b/mplus-t-gen.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # coding=utf-8 # -# Copyright © 2011 Nick Bowler +# Copyright © 2011, 2018 Nick Bowler # # Generates new M+ fonts with the CJK characters enlarged, based on the IPAG # versions. This gives better proportions relative to DejaVu Sans Mono in @@ -31,8 +31,8 @@ for family in families: for glyph in font.selection.all().byGlyphs: for s in scripts: if (glyph.script == s): - glyph.transform(psMat.scale(1.35)) + glyph.transform(psMat.scale(1.25)) - print "Generating " + font.familyname + ".ttf" + print("Generating %s.ttf" % (font.familyname)) font.generate(font.familyname + ".ttf") font.close()