Optimized build procedure: Now we have better (and smaller) outlines.

This commit is contained in:
be5invis 2015-08-09 04:30:26 +08:00
parent ec75ce7f6c
commit ea83169de0
4 changed files with 36 additions and 36 deletions

16
pass1-cleanup.py Normal file
View file

@ -0,0 +1,16 @@
import fontforge
import sys
source = sys.argv[1]
font = fontforge.open(source)
font.mergeFeature(sys.argv[2])
font.selection.all()
font.replaceWithReference(4)
font.removeOverlap()
font.round()
font.removeOverlap()
font.unlinkReferences()
font.removeOverlap()
font.canonicalContours()
font.canonicalStart()
font.generate(sys.argv[3], flags = ("short-post", "opentype"))