You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
248 B

#!/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 )