Given a directory of font files (TTF and OTF) I'd like to inspect each font and determine what style (regular, italic, bold, bold-italic) it is. Is there a command line tool for unix flavored operating systems that can do this? Or does anyone know how to extract the metadata from a TTF or OTF font file?
Unix – Command Line Tool to Analyze Font Files
command linefontslinuxshell
Best Answer
I think you're looking for otfinfo. There doesn't seem to be an option to get at the Subfamily directly, but you could do:
Note that a number of the fonts I looked at use "Oblique" instead of "Italic".