mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-15 09:43:31 +00:00
Fixup logic in LaTeXFonts::getUsedFont()
Allow for unavailable switchdefault fonts fall back to AltFonts
Prerequisite to implement #13124
(cherry picked from commit 833c372931
)
This commit is contained in:
parent
4659e4c716
commit
2a60f32780
@ -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