

In TrueType and OpenType fonts, they can add this restriction in the font data. Keep in mind that font foundries can forbid font embedding for certain typefaces through their end-user license agreement.

For subsetted fonts, the font name is preceded by 6 random characters and a plus sign. This means that PDF files with subsetted fonts are smaller than PDF files with embedded fonts. If the “$” character doesn’t appear anywhere in the text, that character is not included in the font. Subsetting – Only those characters that are actually used in the layout are stored in the PDF.Embedding – A full copy of the entire character set of a font is stored in the PDF.There are two mechanisms to include fonts in a PDF: This makes sure that the file can be viewed and printed as it was created by the designer. Composite fonts (Type 0): both Type 1 (CIDFontType0) and TrueType (CIDFontType2) are supported.īy preference, any fonts that are used in a layout are also included in the PDF file itself.Some tools still do this today because it leads to a smaller PDF file if none of the extra features in OpenType are required.

This was common practice with applications like Acrobat or InDesign before PDF 1.6 was released. That means PDF production tools can embed an OpenType font by taking it apart, copying either the TrueType or the CFF (Type 1) glyphs and embedding those in the PDF in their original/old style format. Within an OpenType font, the character shapes or glyphs can be encoded using either TrueType or Type 1.
