Language::fontenc(): Don't check for LaTeX font with nonTeX fonts.

This commit is contained in:
Juergen Spitzmueller 2018-04-29 09:21:35 +02:00
parent 9d24033d9b
commit 58d7bad447

View File

@ -74,6 +74,11 @@ docstring const Language::translateLayout(string const & m) const
string Language::fontenc(BufferParams const & params) 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 // Determine optimal font encoding
// We check whether the used rm font supports an encoding our language supports // We check whether the used rm font supports an encoding our language supports
LaTeXFont const & lf = LaTeXFont const & lf =