Dotfiles/bin/.bin/fonts/fontFamily
2019-07-30 14:06:10 +01:00

12 lines
211 B
Python
Executable file

#!/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 )