mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 23:12:31 +00:00
Fixup logic in LaTeXFonts::getUsedFont()
Allow for unavailable switchdefault fonts fall back to AltFonts Prerequisite to implement #13124
This commit is contained in:
parent
1381e3e575
commit
833c372931
@ -199,7 +199,8 @@ docstring const LaTeXFont::getUsedFont(bool ot1, bool complete, bool nomath, boo
|
||||
&& altfonts_.empty()) {
|
||||
return name_;
|
||||
}
|
||||
else if (!altfonts_.empty()) {
|
||||
// if we haven't somethin up to here, try fallback fonts
|
||||
if (!altfonts_.empty()) {
|
||||
for (auto const & name : altfonts_) {
|
||||
LaTeXFont altf = altFont(name);
|
||||
if (altf.available(ot1, nomath))
|
||||
|
Loading…
Reference in New Issue
Block a user