Adds script for converting otf to ttf
This commit is contained in:
parent
c53051d48d
commit
32360262ae
1 changed files with 14 additions and 0 deletions
14
bin/otf2ttf
Executable file
14
bin/otf2ttf
Executable file
|
@ -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…
Add table
Add a link
Reference in a new issue