Add font weight script

master
Jonathan Hodgson 7 years ago
parent b8feea0aeb
commit 2af4cde33e
  1. 12
      bin/fontWeight

@ -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…
Cancel
Save