3

There is a folder consist of some different file types which most of them are font files. I use this simple command to export file names of Fonts folder to Output text file:

~/Fonts$ ls > ../Output

But I want suchlike command to export the name of all files with additional properties (Name, Style, Type, Size, Version, Copyright, Description and each attribute which displayed in font viewer) in front of file name with a proper column space like below:

File Name            Name             Style         Type                 Size ,...
FreeSerif.ttf        FreeSerif        Medium        TrueType font        1.5 MB
FreeMono.ttf         FreeMono         Medium        TrueType font        343.3 kB

And what about Fonts directory with some subdirectory? How to show them like above plus a tree view?

Note: The Output is not important to be like above. I expect just a simple command which export file properties alongside file name.

4
  • I like this idea. Maybe a script? Sadly I know ****zero**** about fonts.
    – Kaz Wolfe
    Dec 26, 2013 at 5:29
  • You've to write a script to extract all to style and type information out of a file name. I think you could use awk: ls -lah | awk '{print $5 $9}'. This prints the 5th column (size) and the 9th column (file name). Modify it to fit your needs.
    – OrangeTux
    Dec 26, 2013 at 9:30
  • Please do not double post your question ask a moderator to move your question to Unix&Linux if you fell it belongs there and suppress your second question.
    – Kiwy
    Dec 30, 2013 at 10:12
  • This was crossposted to Unix & Linux at unix.stackexchange.com/q/107108/10762.
    – Chris Down
    Dec 30, 2013 at 10:15

1 Answer 1

3

Maybe this will help you:

cjm answer on unix.stackexchange.com:

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:

otfinfo --info *.ttf | grep Subfamily

Note that a number of the fonts I looked at use "Oblique" instead of "Italic".

Link to the original question & answer.

2
  • otfinfo not installed on my system!
    – user1729
    Dec 30, 2013 at 9:50
  • 4
    @user1729 ...then install it? This information isn't going to come from nowhere, you need specialised tools for specialised solutions.
    – Chris Down
    Dec 30, 2013 at 10:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .