Add font weight script
This commit is contained in:
parent
1c387df1a5
commit
d4e5925d4d
1 changed files with 12 additions and 0 deletions
12
bin/fontWeight
Executable file
12
bin/fontWeight
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("fontWeight <font>")
|
||||||
|
else:
|
||||||
|
font = args[0]
|
||||||
|
f = ff.open( args[0] )
|
||||||
|
print( f.os2_weight )
|
Loading…
Add table
Add a link
Reference in a new issue