7

I have a document class that isn't as thoroughly documented as I might like, and I'd like to figure out what font it uses. Is there an easy, universal way to do that?

  • 2
    If you produce some pdf with that class you can check the pdf properties to see the used fonts. – Sigur Dec 16 '14 at 23:51
  • If you're referring to the font that is used to generate some output (PDF), then you can following the guidelines in How do I find out what fonts are used in a document/picture? (possible duplicate). – Werner Dec 16 '14 at 23:54
  • That does look like a duplicate - didn't find it in my search though. – T.C. Proctor Dec 17 '14 at 0:54
9

The document

\documentclass{article}
\begin{document}

\expandafter\show\the\font

\stop

puts the following information on the terminal and log

\OT1/cmr/m/n/10=select font cmr10.

showing that article is using the font cmr10 known to latex as

\fontencoding{OT1}\fontfamily{cmr}\fontseries{m}\fontshape{n}\selectfont

Just replace article by any class you wish to test.

  • It helps to precede this statement with \wlog{ ... } so you can find it more easily in the log. – Steven Jeuris Feb 14 '17 at 12:47
  • 1
    @StevenJeuris I was assuming running in interactive mode where \show stops and shows the tex as if for an error message – David Carlisle Feb 14 '17 at 13:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.