commit 63f41711cb5bdab54067f71bb758a25cc5aafef9
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.
---
 development/autotests/invertedTests |    9 ---------
 src/LaTeX.cpp                       |    8 +++++---
 2 files changed, 5 insertions(+), 12 deletions(-)

diff --git a/development/autotests/invertedTests 
b/development/autotests/invertedTests
index b39db44..f31a913 100644
--- a/development/autotests/invertedTests
+++ b/development/autotests/invertedTests
@@ -99,15 +99,6 @@ export/export/latex/LongestLabelWithUnderscore.*
 # if they contain non-ASCII characters)
 export/doc/(es|fr)/Additional_pdf4_texF
 
-#10394 Do not error on missing characters in "nullfont".
-# "LaTeXing" seminar fails (except for LuaTeX) with 
-#    Missing character: There is no 0 in font nullfont!
-# due to a bug in PGF (https://sourceforge.net/p/pgf/bugs/314/)
-# However, these warnings can be safely ignored as PGF deliberately uses
-# "nullfont" to suppress output.
-#   
http://tex.stackexchange.com/questions/121154/tikzpicture-options-causing-there-is-no-in-font-nullfont
-export/examples/(|fr/)seminar_.*(dvi|pdf|pdf[2-4]).*
-
 
 Sublabel: ert
 #
diff --git a/src/LaTeX.cpp b/src/LaTeX.cpp
index cfa6e1d..c4f9870 100644
--- a/src/LaTeX.cpp
+++ b/src/LaTeX.cpp
@@ -899,9 +899,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!"),

Reply via email to