Dotfiles/bin/changeFontFamily
2018-06-20 16:25:07 +01:00

15 lines
303 B
Python
Executable file

#!/usr/bin/env python
import fontforge as ff
import sys
args = sys.argv[1:]
if args[0] == '--help':
print("changeFontFamily <font> <family> <newFont>")
else:
font = args[0]
family = args[1]
newfont = args[2]
f = ff.open( args[0] )
f.familyname = family
f.generate(newfont)