Debian Codegraph @

debian/generate-fonts

raw symbols SCIP
1 #!/usr/bin/python3
2
3 from __future__ import print_function
4
5 import fontforge
6 import sys
7
8 f = fontforge.open(sys.argv[1])
9 f.encoding = 'UnicodeFull'
10 f.selection.all()
11 f.autoHint()
12 f.autoInstr()
13 if len(sys.argv) == 3:
14 output = sys.argv[2]
15 else:
16 (prefix, _, suffix) = sys.argv[1].rpartition('.')
17 output = prefix + '.ttf'
18 f.generate(output, flags=[
19 'opentype',
20 'old-kern',
21 'dummy-dsig',
22 'round'])
23 f.close()