use a "smart rounding" algorithm to handle rounding when reducing upm.
This commit is contained in:
parent
7c77c8182d
commit
f3ae40b75d
8 changed files with 125 additions and 23 deletions
12
pass3-finalize.py
Normal file
12
pass3-finalize.py
Normal 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"))
|
Loading…
Add table
Add a link
Reference in a new issue