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.
13 lines
211 B
13 lines
211 B
7 years ago
|
#!/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 )
|