]> git.lyx.org Git - lyx.git/commitdiff
Language::fontenc(): Don't check for LaTeX font with nonTeX fonts.
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 29 Apr 2018 07:21:35 +0000 (09:21 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 29 Apr 2018 07:21:35 +0000 (09:21 +0200)
src/Language.cpp

index 4f69a616ddd37a0e43846baad76920b6e9efc61f..8110c174016664385b52113b52d046e9b3382116 100644 (file)
@@ -74,6 +74,11 @@ docstring const Language::translateLayout(string const & m) const
 
 string Language::fontenc(BufferParams const & params) const
 {
+       // Don't use LaTeX fonts, so just return the language's preferred
+       // (although this is not used with nonTeXFonts anyway).
+       if (params.useNonTeXFonts)
+               return fontenc_.front() == "ASCII" ? "T1" : fontenc_.front();
+
        // Determine optimal font encoding
        // We check whether the used rm font supports an encoding our language supports
        LaTeXFont const & lf =