Adds script for converting otf to ttf

Jonathan Hodgson 6 years ago
parent 8a145cbc19
commit 40c8fc1002
  1. 14
      bin/otf2ttf

@ -0,0 +1,14 @@
#!/usr/bin/env python
import fontforge as ff
import sys
args = sys.argv[1:]
if args[0] == '--help':
print("otf2ttf <font>")
else:
otf = args[0]
ttf = otf.replace('otf','ttf')
print( otf + ' => ' + ttf )
f = ff.open( otf )
f.generate( ttf )
Loading…
Cancel
Save