Prompt
Why are my PDFs rendering with missing fonts and broken layout?
Latest observation
Oct 12, 2026
OpenAI APIWeb search: off
Missing fonts and broken PDF layout usually happen because the PDF viewer or renderer can’t find the fonts the document expects, or it’s substituting different ones. That changes text metrics, which then shifts line breaks, spacing, and positioning.
Common causes:
- Fonts not embedded in the PDF
- If the creator didn’t embed the fonts, the viewer must substitute them.
- Fonts not installed on the system
- The rendering machine may lack the exact font family/version used when the PDF was created.
- Font licensing/subsetting issues
- Some PDFs embed only a subset of glyphs, or fonts are restricted in ways that confuse certain tools.
- Incompatible renderer
- Different PDF engines handle font fallback and layout slightly differently.
- Corrupted font files or PDFs
- Damaged font metadata can cause fallback or layout glitches.
- HTML/CSS to PDF conversion issues
- If you generate PDFs from HTML, web fonts may not load or may not be available at render time.
What to check:
- Open the PDF properties and see whether fonts are embedded.
- Compare the problem file across multiple viewers:
- Adobe Acrobat
- Chrome/Edge PDF viewer
- Another renderer like PDFium, Poppler, Ghostscript, etc.
- Verify the exact fonts exist on the rendering machine.
- If you generate the PDF, ensure fonts are embedded at export.
- If using HTML-to-PDF, confirm web fonts are fully loaded before rendering.
How to fix:
- Embed all fonts when generating the PDF.
- Use standard, widely available fonts if embedding isn’t possible.
- Make sure the rendering environment has the same font set as the authoring environment.
- Update or switch the PDF rendering library if it’s a renderer-specific bug.
- For HTML-to-PDF, load fonts locally and wait for font load completion before capture.
If you want, I can help you debug this for a specific stack, like:
- browser print to PDF
- Python (ReportLab, WeasyPrint, wkhtmltopdf)
- Node (Puppeteer, Playwright, pdfkit)
- Java/.NET/PDFBox/iText/Prince