// font selection must be done before loading fontenc.sty
string const fonts =
- loadFonts(features, fontsRoman, fontsSans,
+ loadFonts(fontsRoman, fontsSans,
fontsTypewriter, fontsSC, fontsOSF,
fontsSansScale, fontsTypewriterScale);
if (!fonts.empty()) {
}
-string const BufferParams::loadFonts(LaTeXFeatures & features, string const & rm,
+string const BufferParams::loadFonts(string const & rm,
string const & sf, string const & tt,
bool const & sc, bool const & osf,
int const & sfscale, int const & ttscale) const
// Times
else if (rm == "times") {
// try to load the best available package
- if (features.isAvailable("mathptmx"))
+ if (LaTeXFeatures::isAvailable("mathptmx"))
os << "\\usepackage{mathptmx}\n";
- else if (features.isAvailable("mathptm"))
+ else if (LaTeXFeatures::isAvailable("mathptm"))
os << "\\usepackage{mathptm}\n";
else
os << "\\usepackage{times}\n";
// Palatino
else if (rm == "palatino") {
// try to load the best available package
- if (features.isAvailable("mathpazo")) {
+ if (LaTeXFeatures::isAvailable("mathpazo")) {
os << "\\usepackage";
if (osf || sc) {
os << '[';
}
os << "{mathpazo}\n";
}
- else if (features.isAvailable("mathpple"))
+ else if (LaTeXFeatures::isAvailable("mathpple"))
os << "\\usepackage{mathpple}\n";
else
os << "\\usepackage{palatino}\n";
else if (rm == "utopia") {
// fourier supersedes utopia.sty, but does
// not work with OT1 encoding.
- if (features.isAvailable("fourier")
+ if (LaTeXFeatures::isAvailable("fourier")
&& lyxrc.fontenc != "default") {
os << "\\usepackage";
if (osf || sc) {
///
std::string const babelCall(std::string const & lang_opts) const;
/// set up the document fonts
- std::string const loadFonts(LaTeXFeatures & features, std::string const & rm,
+ std::string const loadFonts(std::string const & rm,
std::string const & sf, std::string const & tt,
bool const & sc, bool const & osf,
int const & sfscale, int const & ttscale) const;