# Failed pre-flight: How do I repair .notdef and incorrect glyphs?

I am trying to get a document that is written with XeLaTex printed as a book by a professional printer. The PDF I sent to the company did not pass their pre-flight check, however. Their tool "pdfToolbox 6.3" produced a report with the (only) error message (translated from German): “Font refers to ".notdef" glyph” (followed by a list of page numbers).

That report also marks the problems with red boxes. Here is an example:

Hovering over the box, I get a tooltip message that reads: “Font refers to ".notdef" glyph, Page 183, font BqkpklGmylbhCMEX10 [...]”

And this is how it is supposed to look:

So there are actually two problems - incorrect glyphs and .notdef glyphs, and the latter are found by the pre-flight tool.

There are no “Missing character: ...” messages in XeLaTex's log file.

I have tried to come up with a MWE, but since I do not have access to pdfToolbox, the following code may possibly not reproduce the problem.

\documentclass{scrbook}
\usepackage[fleqn]{amsmath}
\usepackage{amsthm}
\usepackage{exscale}
\usepackage{mathspec}
\setmainfont[Mapping=tex-text]{Minion Pro}
\setmathsfont(Digits,Latin){Minion Pro}
\setmathrm{Minion Pro}
\begin{document}
\begin{align*}
S(0, j) &= j\cdot \mathit{del}, \nonumber \\
S(i, 0) &= \sum_{k=1}^i v(b_k, f_k, \varepsilon), \nonumber \\
S(i, j) &= \max\left\{
\begin{array}{l}
S(i, j-1) + \mathit{del},\\
\max\limits_{k=0,\dots,j}\, \big(S(i-1, k) + v(b_i,f_i, s_{k+1\ldots j})\big)\\
\end{array}
\right\} \,.
\end{align*}
\end{document}

• It is hard to test this without being able to reproduce the problem. However, I would guess that exscale is part of the problem as I wouldn't expect it to mix nicely with mathspec, fontspec and friends. – cfr Feb 18 '14 at 0:27

1. Remove use of the exscale package, as cfr suggested.
• With current TeXLive 2013 I have no problem to run your document with loading exscale. However, it makes no sense to load this package when using xetex or luatex – user2478 Jun 5 '14 at 17:52