FormatterHQ

PDF

How to Check if Fonts Are Embedded in a PDF (and Fix Missing Ones)

How to check if fonts are embedded in a PDF, what subset prefixes, standard fonts and ToUnicode maps mean, and how to fix missing fonts before a file goes to print or an archive.

Published 7 min read

A PDF can look perfect on your screen and still print with the wrong typeface, because your computer has the fonts installed and the printer's does not. Before you send a file to a print shop, a publisher or an archive, it pays to check if fonts are embedded in a PDF. This guide explains what embedding is, why subset fonts and the 14 standard fonts are normal, what the font types mean, why copied text sometimes comes out garbled, and how to fix a file whose fonts are missing.

What font embedding means

Text in a PDF is stored as character codes plus a reference to a font. The font itself, the outlines that draw each letter, can either be copied into the PDF (embedded) or left out, with only its name recorded. When a font is embedded, every reader draws the text with exactly the glyphs the author used. When it is not, the reader has to find that font on the local system or pick a substitute.

Substitution is where problems start. A replacement font has different letter widths, so lines can run longer or shorter, words can overlap or spread apart, and a carefully set heading can wrap onto two lines. Symbols and non-Latin scripts may turn into empty boxes or the wrong characters.

Why print shops and archives insist on embedded fonts

A print shop's raster image processor only knows the fonts it has. That is why most printers ask for all fonts to be embedded, and why the print-focused PDF/X standards (PDF/X-1a, PDF/X-3 and PDF/X-4) require it. PDF/A, the archiving standard, goes further: all fonts must be embedded, including the standard 14 fonts, so the document still renders correctly decades from now on systems nobody can predict.

The 14 standard PDF fonts

The PDF specification names 14 standard fonts that readers are expected to provide, so a PDF can use them without embedding them:

  • Times: Times-Roman, Times-Bold, Times-Italic, Times-BoldItalic
  • Helvetica: Helvetica, Helvetica-Bold, Helvetica-Oblique, Helvetica-BoldOblique
  • Courier: Courier, Courier-Bold, Courier-Oblique, Courier-BoldOblique
  • Symbol and ZapfDingbats

Readers usually draw these with a built-in font that has the same letter widths, so the layout holds. For everyday viewing an unembedded standard font is fine. For PDF/A, and for print shops that want every font embedded, it is not.

Subset fonts: what the ABCDEF+ prefix means

A full font file can contain thousands of glyphs, while a document might use only 60 of them. Most apps therefore embed a subset: only the characters that actually appear. A subset font is marked by six capital letters and a plus sign in front of its name, such as KZQWEB+Calibri. The letters are an arbitrary tag that tells subsets apart.

Subsetting is normal and is accepted by PDF/X. Two side effects are worth knowing. If someone later edits the text in the PDF, they may need a character the subset does not contain. And after merging several PDFs you may see the same font twice with different prefixes, one subset from each original file, which is expected.

Font types in plain language

TypeWhat it isWhere you see it
Type 1Adobe's PostScript outline format, also used for the standard 14 fontsOlder design and TeX workflows
TrueTypeThe outline format of most system fonts on Windows and macOSOffice documents, browser print-to-PDF
Type 0 (CID)A composite font that addresses glyphs with two-byte codes, so it can hold very large character setsChinese, Japanese and Korean text, and many apps that write any Unicode text this way
Type 3Glyphs drawn with PDF drawing commands inside the file, sometimes as bitmapsOlder TeX output, charts from plotting libraries

OpenType fonts end up embedded either as TrueType outlines or in the compact CFF format, so you will not see "OpenType" as a separate PDF font type. Type 3 fonts are always stored inside the file, but bitmap-based ones can look rough when printed, and some preflight checks reject them. If your charts come from matplotlib, setting pdf.fonttype to 42 makes it embed TrueType fonts instead of its default Type 3.

ToUnicode maps and garbled copy and paste

Embedding solves how text looks. Copying and searching depend on something else: knowing which Unicode character each code stands for. Simple fonts with a standard encoding such as WinAnsiEncoding make that easy to work out. Composite fonts with Identity-H encoding store glyph numbers rather than characters, so a reader needs a ToUnicode map to turn them back into text.

Without that map the page looks fine, but copied text comes out as random symbols, search finds nothing and screen readers read nonsense. A fast way to test is to run the file through PDF to Text: if a page that clearly contains text produces gibberish, a missing ToUnicode map is a likely cause.

How to check if fonts are embedded in a PDF

Open the PDF font checker and drop your file onto it. It reads the file in your browser, so nothing is uploaded, and password-protected PDFs open after you enter the password. The checker lists every font used on the pages, inside form XObjects and Type 3 glyphs, and in form fields. Here is what the table might look like for a four-page brochure:

FontTypeEmbeddedEncodingText copyPages
Calibri (subset)TrueTypeEmbeddedWinAnsiEncodingReliable1–4
Arial-BoldMTTrueTypeNot embeddedWinAnsiEncodingReliable2
NotoSansJP-Regular (subset)Type 0 (CFF CID)EmbeddedIdentity-HMay be wrong3
HelveticaType 1Standard fontWinAnsiEncodingReliableform fields

Read it column by column:

  • Embedded is the column that matters for printing. Any red Not embedded badge is a font that will be substituted on machines that lack it. Standard font marks one of the 14 standard fonts.
  • Type shows the font type, with the embedded format underneath when it differs, for example compact CFF data inside a Type 1 font.
  • Text copy reflects the ToUnicode map. May be wrong means copying, searching or extracting that text may produce wrong characters.
  • Pages tells you where to look, so you can judge whether a problem font only affects a footnote or the whole document.

A summary above the table counts fonts that are not embedded, standard fonts that are not embedded and fonts without a ToUnicode map. If everything is in order, you get a single OK line instead. A file that lists no fonts at all is usually a scan: its pages are images. You can export the list as CSV or copy it as JSON to attach to a print job or a bug report.

How to fix fonts that are not embedded

You rarely fix embedding inside the PDF. The reliable route is to go back to the source document and export again. The PDF metadata viewer shows the Creator and Producer fields, which tell you which app and PDF library made the file if you are not sure.

  1. Re-export with embedding turned on. In design apps, choose a print preset such as High Quality Print or a PDF/X preset, since PDF/X requires every font to be embedded. In office apps, look for a PDF/A or ISO 19005 option in the PDF export settings, which also forces embedding.
  2. Check licence restrictions. Font files carry embedding permissions set by the foundry. A font marked as restricted cannot be embedded, and the export app will warn or leave it out. Switch to a font whose licence allows embedding, or obtain a licence that does.
  3. Convert text to outlines for print-only artwork such as a logo or a poster headline. The text becomes shapes, so it no longer needs a font, but it can no longer be searched or copied either.
  4. Re-check the new file in the font checker before sending it.

If you only have the PDF, you can re-process it with a tool such as Ghostscript:

gs -o fixed.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -dEmbedAllFonts=true input.pdf

Ghostscript can only embed fonts it finds on your system and substitutes the rest, so compare the result visually against the original before trusting it.

Checklist before sending a PDF to print

  • Every font shows Embedded, or the print shop has confirmed that standard fonts may stay unembedded.
  • Subset fonts are present and expected; no action needed.
  • No Type 3 bitmap fonts in body text or charts, if your printer's preflight rejects them.
  • Text copy is Reliable for any text people need to search or copy.
  • Pages look right at print resolution. Rendering a few pages with PDF to PNG at 300 DPI gives you a quick proof to zoom into.
  • The file meets the PDF/X or PDF/A version the recipient asked for, exported with that preset rather than renamed.
  • pdf
  • fonts
  • font embedding
  • printing
  • pdf/a

Frequently asked questions

Can I embed fonts in a PDF without the original document?
Only partly. A PDF can be re-processed so that missing fonts are embedded, but the tool doing it needs those exact fonts installed, otherwise it embeds a substitute and the layout can change. Re-exporting from the original document is the reliable fix.
Does embedding fonts make a PDF much bigger?
Full fonts can add a noticeable amount, especially large fonts for Chinese, Japanese or Korean text. Subsetting keeps the increase small because only the characters actually used are stored. For most documents the difference is minor compared with the images.
Why does my PDF look fine on my computer but not on someone else's?
Your computer has the fonts the document uses, so your viewer can draw unembedded fonts correctly. The other computer does not and substitutes a different font, which changes letter widths and line breaks. Embedding the fonts makes the file look the same everywhere.
Is it legal to embed any font in a PDF?
It depends on the font licence. Many fonts allow embedding for viewing and printing, while some licences restrict or forbid it, and the font file records these permissions for export apps to follow. Check the licence of commercial fonts before distributing documents that embed them.

Tools used in this guide