use a "smart rounding" algorithm to handle rounding when reducing upm.

This commit is contained in:
be5invis 2015-08-28 17:41:13 +08:00
parent 7c77c8182d
commit f3ae40b75d
8 changed files with 125 additions and 23 deletions

12
pass3-finalize.py Normal file
View file

@ -0,0 +1,12 @@
import fontforge
import psMat
import sys
import math
source = sys.argv[1]
font = fontforge.open(source)
font.em = int(sys.argv[3])
font.selection.all()
font.round()
font.simplify(0.1)
font.generate(sys.argv[2], flags = ("short-post", "opentype"))