LaTeXFonts: Support the rare case where there is really only preamble code

This commit is contained in:
Juergen Spitzmueller 2013-02-10 14:31:49 +01:00
parent 5000a016cf
commit 55bc3665a2

View File

@ -163,6 +163,11 @@ docstring const LaTeXFont::getUsedFont(bool ot1, bool complete, bool nomath)
else if (!package_.empty()
&& LaTeXFeatures::isAvailable(to_ascii(package_)))
return name_;
else if (!preamble_.empty() && package_.empty()
&& requires_.empty() && !switchdefault_
&& altfonts_.empty()) {
return name_;
}
else if (!altfonts_.empty()) {
for (size_t i = 0; i < altfonts_.size(); ++i) {
LaTeXFont altf = altFont(altfonts_[i]);