commit ded70f24f682c57865da16753a0f13d987abeb21
Author: Günter Milde <[email protected]>
Date: Fri Sep 23 09:04:03 2016 +0200
Fix #10394 Do not error on missing characters in "nullfont".
Add an exception to the conversion of "missing character" warnings into
errors.
The PGF package deliberately uses the dummy font "nullfont" to suppress
output.
Therefore, warnings about missing characters in "nullfont" are really only
warnings.
Also updated the comment: "Missing character" warnigns are especially
widespread
in XeTeX/LuaTeX but can also happen with "classical" 8-bit TeX.
Feel free to port this to branch.
---
src/LaTeX.cpp | 8 +++++---
status.22x | 2 ++
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/LaTeX.cpp b/src/LaTeX.cpp
index 6063d80..06add5b 100644
--- a/src/LaTeX.cpp
+++ b/src/LaTeX.cpp
@@ -892,9 +892,11 @@ int LaTeX::scanLogFile(TeXErrors & terr)
from_local8bit("pdfTeX Error"),
from_local8bit(token),
child_name);
- } else if (prefixIs(token, "Missing character: There is
no ")) {
- // XeTeX/LuaTeX error about missing glyph in
selected font
- // (bug 9610)
+ } else if (prefixIs(token, "Missing character: There is
no ")
+ && !contains(token, "nullfont")) {
+ // Warning about missing glyph in selected font
+ // may be dataloss (bug 9610)
+ // but can be ignored for 'nullfont' (bug
10394).
retval |= LATEX_ERROR;
terr.insertError(0,
from_local8bit("Missing
glyphs!"),
diff --git a/status.22x b/status.22x
index 249f035..612ea23 100644
--- a/status.22x
+++ b/status.22x
@@ -85,6 +85,8 @@ What's new
inoperable). (bug 10261, see http://www.lyx.org/trac/ticket/10261#comment:16
for a workaround to KDE's bug.)
+- Do not issue an error on missing characters in 'nullfont' (bug 10394).
+
* INTERNALS