14 lines
312 B
Python
14 lines
312 B
Python
import fontforge
|
|
import psMat
|
|
import sys
|
|
import math
|
|
|
|
source = sys.argv[1]
|
|
font = fontforge.open(source)
|
|
font.em = int(sys.argv[4])
|
|
font.selection.all()
|
|
font.round()
|
|
font.removeOverlap()
|
|
font.simplify(0.1)
|
|
font.mergeFeature(sys.argv[2])
|
|
font.generate(sys.argv[3], flags = ("short-post", "opentype")) |