Skip to main content
Justin Putney
Known Participant
November 19, 2012
Answered

How to get font classification (serif,sans,mono)...

  • November 19, 2012
  • 1 reply
  • 7252 views

I've searched high and low trying to find a way to determine if a font is serif, sans, or mono. I've looked at font APIs (Typekit may be a possibility), I've looked at metadata, and export style mapping (seems like it should be there).

Any ideas?

This topic has been closed for replies.
Correct answer Jongware

There is some potentially useful data stored in OTF and TTF font types: the PANOSE style information (http://en.wikipedia.org/wiki/PANOSE). These flags inform host software of the most important visual characteristics of a font, so it could theoretically use another font with the same characteristics instead.

PANOSE information cannot be queried straight from InDesign, so you have to parse the raw font data yourself. Fortunately, it's rather straightforward. See this thread for Illustrator how I got it: http://forums.adobe.com/message/4171259

Unfortunately, it's potential usefulness is severly limited because it's left to the type designer to fill in the fields with appropriate values. Foundries such as Monotype and Adobe itself give it a serious try, but your average Dafont font will almost surely contain nothing but "any" or "no fit" entries.

1 reply

Inspiring
November 19, 2012

Justin, I was searching on such a topic high and low with no result either. Meanwhile I'm convinced that the only approach will be to install supplemental tools for command line access to fonts and script them. Here are a few ressources from my recent research (but I just collected them, no testing or checking up to now):

...

http://www.microsoft.com/typography/tools/tools.aspx [Win]

...

https://developer.apple.com/fonts/ [Mac]

...

FontLab scripting via Python

...

http://sourceforge.net/projects/fonttools/ (Python - OpenSource)

If you have any success, please let me know!

Cheers

Tobias

Jongware
Community Expert
JongwareCommunity ExpertCorrect answer
Community Expert
November 19, 2012

There is some potentially useful data stored in OTF and TTF font types: the PANOSE style information (http://en.wikipedia.org/wiki/PANOSE). These flags inform host software of the most important visual characteristics of a font, so it could theoretically use another font with the same characteristics instead.

PANOSE information cannot be queried straight from InDesign, so you have to parse the raw font data yourself. Fortunately, it's rather straightforward. See this thread for Illustrator how I got it: http://forums.adobe.com/message/4171259

Unfortunately, it's potential usefulness is severly limited because it's left to the type designer to fill in the fields with appropriate values. Foundries such as Monotype and Adobe itself give it a serious try, but your average Dafont font will almost surely contain nothing but "any" or "no fit" entries.

Jongware
Community Expert
Community Expert
November 19, 2012

(From the wiki entry:)

This cheat-sheet sure is handy! http://forum.high-logic.com/postedfiles/Panose.pdf