Sub topic 7
Embedding Fonts and Handling Missing Ones
This chapter assumes you can export a PDF from a layout application and open it in Acrobat or a similar viewer. You should also know what a typeface and a font file are. By the end you will know how fonts end up in a PDF/X file, how to check them, and what to do when one is missing.
Why fonts are a print risk
A font is a file that contains the shapes (glyphs) for each character, plus spacing and hinting data. A PDF can either carry those shapes inside itself or only name the font and expect the viewing computer to supply it.
A print shop's system is not your computer. If your PDF only names "Garamond Premier Pro" and the printer's system does not have it, the system substitutes another font. Line breaks shift, text reflows, and a headline can overflow its box. The error is often subtle, so it can pass a casual look at the screen and show up only on the printed sheet.
PDF/X removes that risk. Every PDF/X standard (X-1a, X-3 and X-4) requires that all fonts be embedded. A file with a non-embedded font is not valid PDF/X, and a preflight profile for PDF/X will flag it as an error.
Embedding, subsetting and outlines
There are three ways text can be made safe for output.
- Full embedding stores the whole font file in the PDF. This produces larger files.
- Subsetting stores only the glyphs the document actually uses. This is the usual default. Layout applications let you set a threshold, for example "subset fonts when the percentage of characters used is less than 100%".
- Converting text to outlines (or "curves") turns the characters into vector shapes. The text is no longer a font at all, so nothing needs to be embedded.
Subsetting is normally what you want. The printer does not need to edit the text, only to print it.
Outlines solve missing-font problems but cost you several things:
- The text can no longer be searched, selected or edited.
- Small text can look slightly heavier or lighter at small sizes, because the font's hinting instructions are lost.
- The text is not editable by you later, so keep a layered working file.
- Outlining a whole document is unnecessary. Use it for a logo or a decorative display line, not for body text.
| Method | File size | Text stays live | Risk of substitution | Best for |
|---|---|---|---|---|
| Full embedding | Largest | Yes | None | Files the printer must edit |
| Subsetting | Small | Yes | None | Most print jobs |
| Outlines | Small | No | None | Logos, special display text |
Licensing: embedding is not always permitted
A font file carries an embedding permission flag, called fsType, set by the foundry. It can allow or restrict embedding:
- Installable or editable embedding: you may embed the font, and the recipient may edit with it.
- Preview and print embedding: you may embed it for viewing and printing only. This is enough for PDF/X.
- Restricted license: you may not embed it at all.
If a font is restricted, your layout application will warn you at export or refuse to embed it. Do not work around this by hunting for a pirated copy. Either buy a license that allows embedding, choose a different font, or ask the foundry. Converting to outlines for a short display line is usually permitted, but check the license, because some foundries treat outlining as a form of embedding.
Which fonts you will meet
Different font formats behave differently in PDF.
- OpenType (.otf, .ttf): the current standard. Both PostScript-flavored (CFF) and TrueType-flavored fonts embed well.
- TrueType (.ttf): embeds fine in modern workflows.
- Type 1 (PostScript): adobe ended support for Type 1 fonts in January 2023. Older files may still contain them, but you should replace them with OpenType versions.
- Variable fonts: a single file with adjustable axes such as weight and width. Support in PDF export varies between applications. Some export a variable font instance correctly, and others fall back to a default style. Always check the output, and consider using static instances for print.
- Color or emoji fonts: these can behave unpredictably. Check the result carefully, or convert to outlines.
Checking fonts in the exported PDF
Do not trust your layout application's settings alone. Verify the file you actually produced. Poppler's pdffonts lists each font in a PDF:
pdffonts job.pdfA typical result looks like this:
name type encoding emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
ABCDEF+MinionPro-Regular CID Type 0C Identity-H yes yes yes 12 0
GHIJKL+MyriadPro-Bold Type 1C WinAnsi yes yes no 15 0
Helvetica Type 1 WinAnsi no no no 21 0Read the columns this way:
- name: a six-letter prefix followed by "+" means the font is a subset.
Helveticahas no prefix. - emb: "yes" means the font is embedded. "no" is the problem. Here Helvetica is not embedded, so the file fails PDF/X.
- sub: "yes" means a subset was embedded.
- uni: "yes" means the font has a mapping to Unicode, which affects copy and search, not printing.
A non-embedded "standard 14" font such as Helvetica, Times or Courier is a common source of failures. These fonts were once assumed to exist on every system. PDF/X does not allow that assumption.
Acrobat shows the same information in File > Properties > Fonts. Look for "(Embedded Subset)" or "(Embedded)" after each name.
Finding the source of a missing font
If pdffonts shows emb no, work out where the font came from. The usual causes are:
- A font used in a placed PDF or EPS file. The layout application may not be able to embed fonts that live inside a placed graphic. Re-export the placed file with fonts embedded, or place the original artwork.
- A font in an Illustrator or Photoshop file with live text, placed into the layout.
- A font that was missing on your own computer. The layout application showed a pink highlight or "missing font" warning, and you exported anyway.
- Export settings that disable embedding. An old or custom preset may have embedding turned off, or may set the "subset" threshold wrongly.
- A restricted font that the application refused to embed.
In InDesign, open Type > Find Font. The dialog lists every font in the document, including those inside placed graphics. It marks missing fonts and lets you replace them. In Affinity Publisher, use Document > Resource Manager. In Illustrator, use Type > Find Font.
Handling a missing font properly
When a font is missing on your own machine, you have three honest choices:
- Install it. Activate the font through your font manager, or install the correct version from the foundry. Be careful with duplicates. Two fonts with the same name but different versions can have different metrics and cause reflow.
- Replace it deliberately. Choose a substitute yourself, then check every affected text frame for overset text and changed line breaks. Do not let the application replace it silently.
- Outline the text if the font cannot be licensed or installed and the text is short and final.
After any change, re-run the preflight and export again. Then run pdffonts on the new file.
What a preflight font check does
A preflight profile runs several font checks. The names vary by tool, but they usually include:
| Check | Typical severity | Meaning |
|---|---|---|
| Font not embedded | Error | The file will not meet PDF/X and may be substituted |
| Font missing in layout | Error | The application used a replacement |
| Font embedding restricted | Error | The license forbids embedding |
| Type 1 font used | Warning | Obsolete format, replace if possible |
| Text smaller than minimum size | Warning | Fine strokes or reversed text may fill in |
| Font substituted by Multiple Master | Error | The font was faked |
Size checks matter in print. Small text in several colors on a press can misregister, so many printers recommend minimum sizes. For example, reversed text (light text on a dark or colored background) needs a sturdy typeface at 6 pt or larger, and text built from several inks should be avoided. Use the numbers in your printer's specification, not these examples.
A repeatable font check
The following diagram shows the loop to follow before you hand off the file.
You can automate the check. This script reads the pdffonts output and exits with an error when a font is not embedded:
#!/bin/sh
# usage: check-fonts.sh job.pdf
pdffonts "$1" | tail -n +3 | awk '$(NF-4) == "no" { print "NOT EMBEDDED: " $1; bad=1 } END { exit bad }'The tail -n +3 skips the two header lines. Counting from the end of each line makes the test work even when a font name contains spaces. The emb value sits five fields from the end, because the row ends with emb sub uni objectID generation.
If the script prints nothing and exits with status 0, every font is embedded.
Common errors and edge cases
- Fonts embedded but text still looks wrong. Embedding guarantees the shapes, not the layout you meant. If the layout application had substituted a font, the PDF embeds the substitute faithfully. Check the layout, not only the PDF.
- A font appears twice with different prefixes. This is normal when two subsets of the same font exist, for example one from a placed PDF and one from the layout.
- Fonts listed as "Type 3". These are bitmap-like or procedural fonts, often produced by non-Adobe tools. They can print poorly. Re-export from the source if you can.
- Text in transparency effects. Drop shadows and blends can rasterize text at the flattening resolution. That is covered in the transparency chapter.
- Preflight passes but print differs. Compare the proof against your layout and look at line breaks and special characters such as ligatures.
Exercise
You run pdffonts job.pdf and one row shows the name Helvetica with emb set to no. Your layout uses only Minion Pro. Where should you look, and what are your options for fixing it?
Show answer
Helvetica is probably coming from a placed PDF, EPS, or Illustrator/Photoshop file, not from your layout text. Open Type > Find Font in InDesign (or Document > Resource Manager in Affinity Publisher) to find the graphic that contains it. Then re-export that placed file with fonts embedded, replace the font in the original artwork, or convert its text to outlines. Re-export the PDF/X and run pdffonts again to confirm every row shows yes.
Exercise
A client sends a logo whose font license forbids embedding. Name two valid ways to use it in a PDF/X job.
Show answer
Convert the logo text to outlines, if the license allows outlining, so no font needs embedding. Or obtain a license that allows embedding, or choose a different font. Keep the editable original, because outlined text can no longer be edited.