Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.

Are there really 3 types of fonts in PDF files?

1 min read

Are there really 3 types of fonts in PDF files?

There is an old joke that runs 

There are 3 types of Mathematican. Those who can count and those who can’t (well I thought it was quite funny)….

I was reminded of it it this week looking at some example PDF files. In theory there are two types of fonts which really translate into three types with a messy third case. Read on and see if you agree with me….

PDF files have very flexible font capabilities and one of the key decisions you make is to whether you include the fonts you are using or not. In theory, there are 8 fonts families guaranteed to be available in the PDF viewer (Courier, Arial, etc) although even this is confused (is TimesNewRoman technically the same as TimesNewRomanPS?). Otherwise you can embed the fonts you need so that they can be displayed on any system. This makes the PDF files bigger but guarantees they look as you attended.

So in theory, if you choose not to include a font in a PDF file by embedding it, you will get smaller files but you will need to be sure it is on every machine that will view the PDF has that font installed unless it is one of the standard font families. But there is a third category….

If you open a PDF file containing some non-embedded fonts (like SongST) in Acrobat, you will be asked if you wish to download the font pack and SongST will be installed. But this is not part of the PDF spec. So if you use another PDF viewer (Preview on Mac, Xpdf, we also have a very nice PDF viewer as well!), we cannot offer the option to download the files.

And while Acrobat installs the fonts on the system so that they can be accessed (/Library/fonts/ on my Mac and C:/Program Files/Adobe/Reader10.0./fonts/cid on my PC), the actual license rules only stipulate their use in Acrobat itself.

There are several free fonts which can be used as alternatives, but I find it all rather messy and I think it defeats the purpose of having a nice open PDF standard. What do you think?

This post is part of our “Fonts Articles Index” in these articles we explore Fonts.

Did you know...

IDRsolutions offers a whole range of online file converters to convert PDF and Microsoft Excel, Word and Office Documents to HTML5, SVG or image formats?

It is free to use for single file conversions and also includes Developer links if you want to use our commercial software for bulk conversions. Find out more on this page

Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.

Leave a Reply

Your email address will not be published. Required fields are marked *

IDRsolutions Ltd 2020. All rights reserved.