From c9dd349bee71d9a3952f36246f684ead9ca43c2b Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 6 Jan 2019 16:40:36 +0100 Subject: [PATCH] Don't output CJK environment with non-TeX fonts This amends d193cd05a8e3b. --- src/output_latex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output_latex.cpp b/src/output_latex.cpp index e95cd651b3..55e6c67d1d 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -1405,7 +1405,7 @@ void latexParagraphs(Buffer const & buf, // if the document's language is a CJK language // (but not in child documents) OutputState * state = getOutputState(); - if (maintext && !is_child + if (maintext && !is_child && !bparams.useNonTeXFonts && bparams.language->encoding()->package() == Encoding::CJK) { docstring const cjkenc = (bparams.encoding().iconvName() == "UTF-8" && LaTeXFeatures::isAvailable("CJKutf8")) ?