]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
Provide option to force a local language switch where a global is not allowed (fixes...
[lyx.git] / src / LaTeXFeatures.cpp
index e2abc6dbedfb3d5c7bdda71493a95a7ad483732a..bbc76d18523eb714573fdc7dc874e90baf90e8e5 100644 (file)
@@ -474,6 +474,9 @@ bool LaTeXFeatures::isRequired(string const & name) const
 
 bool LaTeXFeatures::isProvided(string const & name) const
 {
+       if (params_.useNonTeXFonts)
+               return params_.documentClass().provides(name);
+
        bool const ot1 = (params_.font_encoding() == "default"
                || params_.font_encoding() == "OT1");
        bool const complete = (params_.fonts_sans == "default")
@@ -498,6 +501,7 @@ bool LaTeXFeatures::isProvided(string const & name) const
                                                                       nomath);
 }
 
+
 bool LaTeXFeatures::mustProvide(string const & name) const
 {
        return isRequired(name) && !isProvided(name);
@@ -1277,6 +1281,7 @@ docstring const LaTeXFeatures::getTClassHTMLStyles() const
 
 
 namespace {
+
 docstring const getFloatI18nPreamble(docstring const & type,
                        docstring const & name, Language const * lang,
                        Encoding const & enc, bool const polyglossia)