You open an important PDF contract, university syllabus, or international invoice. But instead of readable sentences, paragraphs are filled with hollow rectangular boxes, black squares, or question marks:

Hello World!  ──────►  ⯐⯐⯐⯐⯐ ⯐⯐⯐⯐⯐!

In the digital typography industry, this glitch is universally known as “Tofu”—named for the white, rectangular soybean curd that the blank character boxes resemble. (Google’s open-source typeface project Noto is short for “No Tofu”).

Why does PDF text suddenly turn into squares, what is happening under the hood of the rendering engine, and how can you fix or recover a document afflicted with this error?

The Culprit: The .notdef (Not Defined) Glyph

Every standard digital font (TrueType, OpenType, Type 1) contains an internal table of vector glyph outlines. At the very beginning of every font program—at glyph index 0—is a special mandatory symbol called .notdef (Not Defined).

Under the ISO 32000 specification and OpenType standards:

  • When a software program requests character code X (such as the letter “e”, a Greek letter “Ω”, or a smart quotation mark ”””), the PDF viewer searches the embedded font dictionary.
  • If the font file does not contain a visual drawing for that specific character code, the specification mandates that the graphics engine must render the .notdef glyph.
  • In standard font design, the .notdef symbol is drawn as a hollow rectangular box, a box with an “X” through it, or a question mark.

When you see a line of squares, the PDF reader is telling you: “I have been instructed to draw characters, but the font embedded in this document has no graphical drawings for these character codes!”

The 3 Technical Causes of Tofu Squares in PDFs

1. Incomplete Font Subsetting

To reduce file size, modern PDF generators create font subsets: instead of embedding the entire 5MB font, they embed only the specific letters used in the document.

  • If an author created a PDF from a document using special characters (such as European accents like ñ, mathematical symbols like ±, or bullet points •), but the exporter’s subsetting routine failed to include those specific glyph IDs in the embedded subset, the viewer encounters missing glyphs.
  • Every accented character or bullet turns into a hollow square.

2. Missing or Corrupted ToUnicode CMap (Character Map)

In a digital PDF, letters are rendered by mapping internal numeric glyph indexes to standard Unicode points:

  • If a custom font assigned internal index 0x0041 to a glyph, the PDF requires a ToUnicode mapping table to translate that index back into the Unicode character U+0041 (‘A’).
  • If the authoring software exported an invalid or corrupted CMap, the viewer’s font rendering engine becomes desynchronized, triggering .notdef substitution across entire paragraphs.

3. Font Referencing with Failed System Substitution

If the author did not embed the font at all (merely referenced MyCustomFont), the recipient’s computer attempts font substitution:

  • The recipient’s operating system picks a generic fallback font (like Arial or Times New Roman).
  • If the original document used specific typographic ligatures (such as “fi” or “fl”) or custom corporate symbols that do not exist in standard Arial, the fallback font cannot draw them, rendering squares instead.

Diagnostic Summary: What Kind of Error Do You Have?

Symptom Cause Can You Copy/Paste the Text?
Only accents, bullets, and symbols are squares. Font subsetting omitted special characters. Usually yes (Unicode points are intact; only visual glyphs are missing).
All regular letters (A-Z) are hollow squares. Corrupted embedded font program or broken CMap. No (Pasting produces gibberish or empty spaces).
File looks fine on sender’s PC, but squares on yours. Font was not embedded; missing from your OS. Depends on fallback font mapping.
Squares appear only when printing on physical paper. PostScript printer driver font substitution failure. Document is fine; printer driver needs updating.

How to Fix and Recover a PDF with Square Characters

Quick Recovery 1: Test Clipboard Copy-Paste

In many cases, the underlying Unicode text string is completely intact, even though the on-screen font glyph cannot be drawn:

  1. Highlight the line of squares with your mouse.
  2. Copy it (Ctrl + C or Cmd + C).
  3. Open a plain text editor like Notepad and paste (Ctrl + V).
  4. If readable text appears in Notepad, the document’s textual data is 100% safe! You can copy the text out or re-generate the PDF.

Quick Recovery 2: Print as Image (Bypass Printer Font Engines)

If the document displays fine on screen but prints out as squares on your physical laser printer:

  1. Open the print dialog (Ctrl + P) in Adobe Acrobat Reader.
  2. Click the Advanced button at the bottom of the dialog.
  3. Check the box: Print as Image.
  4. Click OK and Print. This instructs your computer to rasterize the pages into pure pixels before sending data to the printer, bypassing buggy printer font memory chips.

Quick Recovery 3: Re-Run OCR on the Document

If the PDF contains completely scrambled font encodings that cannot be read:

  1. Flatten or print the document to a high-resolution image PDF.
  2. Run an Optical Character Recognition (OCR) tool (such as Adobe Acrobat’s Recognize Text or open-source OCRmyPDF).
  3. The OCR software inspects the visible character shapes independently of the corrupted font dictionaries, generating a fresh, clean Unicode text layer.