Live data from Hacker News

How to tell which font is used in a PDF?

news.ycombinator.com

1–6 of 6 posts

Re: How to tell which font is used in a PDF?

#5
One way is to copy a word from that part of the PDF document, and paste it into Word or another rich text editor. Then click in the middle of the pasted word. The editor's font display will show you the name of the font.

There is a Lin/Win/Mac font tool here http://www.foolabs.com/xpdf/download.html

Re: How to tell which font is used in a PDF?

#6
post #4

pdffonts, part of poppler-utils, will dump a list of font names.

Another, hackier, approach at the commandline is to use:

    strings file.pdf  | grep -i fontname
This will give a line like:

    >
Comapred to pdffont's

    ZXOBUP+MinionPro-BoldIt              Type 1C           WinAnsi          yes yes yes    364  0
Or you can use perl:

    strings file.pdf  | perl -ne 'print "$1\n" if (/FontName\/(.+?)\//)'
and get a list of font names alone, like:

    ZXOBUP+MinionPro-BoldIt