Add font family scripts
This commit is contained in:
parent
3dc99cc172
commit
1c387df1a5
2 changed files with 27 additions and 0 deletions
15
bin/changeFontFamily
Executable file
15
bin/changeFontFamily
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/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)
|
12
bin/fontFamily
Executable file
12
bin/fontFamily
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
import fontforge as ff
|
||||||
|
import sys
|
||||||
|
|
||||||
|
args = sys.argv[1:]
|
||||||
|
|
||||||
|
if args[0] == '--help':
|
||||||
|
print("fontFamily <font>")
|
||||||
|
else:
|
||||||
|
font = args[0]
|
||||||
|
f = ff.open( args[0] )
|
||||||
|
print( f.familyname )
|
Loading…
Add table
Add a link
Reference in a new issue