Adds script for converting otf to ttf

master
Jonathan Hodgson 6 years ago
parent c53051d48d
commit 32360262ae
  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