Merged features to otfcc

This commit is contained in:
be5invis 2016-05-01 06:56:11 +08:00
parent 5cf5dc8662
commit 6801aacf27
11 changed files with 274 additions and 300 deletions

View file

@ -5,7 +5,6 @@ import sys
source = sys.argv[1]
font = fontforge.open(source)
font.mergeFeature(sys.argv[2])
font.selection.all()
# Replace accented characters into references
font.selection.select(("ranges", "unicode", None), 0x1FCD, 0x1FCF, 0x1FDD, 0x1FDF)
@ -40,7 +39,7 @@ font.simplify(0.05, ("smoothcurves", "choosehv"), 0.1)
#font.em = 2000
font.selection.all()
font.layers["Fore"].is_quadratic = True
font.transform(psMat.skew(float(sys.argv[4]) / 180 * math.pi))
font.transform(psMat.skew(float(sys.argv[3]) / 180 * math.pi))
font.em = 1000
font.selection.all()
@ -52,4 +51,4 @@ font.removeOverlap()
font.canonicalContours()
font.canonicalStart()
font.generate(sys.argv[3], flags = ("opentype"))
font.generate(sys.argv[2], flags = ("opentype"))