]> git.lyx.org Git - features.git/commitdiff
More MoreOpts fixes
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 13 Jul 2019 13:33:20 +0000 (15:33 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:36 +0000 (15:48 +0200)
src/BufferParams.cpp
src/LaTeXFonts.cpp

index e65e6e4a12c742faa8e950cd9a19a51a2024e905..426bf8c04251fbbe5b7aced674abbf822b17a37e 100644 (file)
@@ -3474,12 +3474,12 @@ string const BufferParams::loadFonts(LaTeXFeatures & features) const
        // SANS SERIF
        os << theLaTeXFonts().getLaTeXFont(from_ascii(fontsSans())).getLaTeXCode(
                dryrun, ot1, complete, fonts_expert_sc, fonts_old_figures,
-               nomath, font_roman_opts, fontsSansScale());
+               nomath, font_sans_opts, fontsSansScale());
 
        // MONOSPACED/TYPEWRITER
        os << theLaTeXFonts().getLaTeXFont(from_ascii(fontsTypewriter())).getLaTeXCode(
                dryrun, ot1, complete, fonts_expert_sc, fonts_old_figures,
-               nomath, font_roman_opts, fontsTypewriterScale());
+               nomath, font_typewriter_opts, fontsTypewriterScale());
 
        // MATH
        os << theLaTeXFonts().getLaTeXFont(from_ascii(fontsMath())).getLaTeXCode(
index c2e934539df3559df88df148c4492f7a0d6cf97c..29d454dfb3066736586b2488c6f1b15784b5365d 100644 (file)
@@ -249,6 +249,7 @@ string const LaTeXFont::getPackageOptions(bool ot1, bool complete, bool sc, bool
        bool const needosfopt = (osf != osfdefault_);
        bool const has_osf = providesOSF(ot1, complete, nomath);
        bool const has_sc = providesSC(ot1, complete, nomath);
+       bool const moreopts = providesMoreOptions(ot1, complete, nomath);
 
        if (!packageoption_.empty())
                os << to_ascii(packageoption_);
@@ -279,7 +280,7 @@ string const LaTeXFont::getPackageOptions(bool ot1, bool complete, bool sc, bool
                            convert<std::string>(float(scale) / 100));
        }
 
-       if (moreopts_ && !extraopts.empty()) {
+       if (moreopts && !extraopts.empty()) {
                if (!os.str().empty())
                        os << ',';
                os << extraopts;