summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/fonts/xits/build.py
blob: 1575ec2ef9cdcb778f6a7ab4c36f155e94152185 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import sys
try:
    from sortsmill import ffcompat as fontforge
except ImportError:
    import fontforge

font = fontforge.open(sys.argv[1])

if len(sys.argv) > 4:
  font.mergeFeature(sys.argv[4])

font.version = sys.argv[3]
font.generate(sys.argv[2], flags=("round", "opentype"))