13 lines
276 B
Python
13 lines
276 B
Python
import fontforge
|
|
import sys
|
|
|
|
source = sys.argv[1]
|
|
font = fontforge.open(source)
|
|
|
|
font.selection.all()
|
|
font.removeOverlap()
|
|
font.em = 1024
|
|
font.simplify(1)
|
|
font.canonicalContours()
|
|
font.canonicalStart()
|
|
font.generate(sys.argv[2], flags = ("short-post", "opentype")) |