From 833c37293147cec14500a208c8ca98cdc010346d Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Wed, 13 Nov 2024 09:02:49 +0100 Subject: [PATCH] Fixup logic in LaTeXFonts::getUsedFont() Allow for unavailable switchdefault fonts fall back to AltFonts Prerequisite to implement #13124 --- src/LaTeXFonts.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LaTeXFonts.cpp b/src/LaTeXFonts.cpp index 655d4f17e1..ed4b8d9f85 100644 --- a/src/LaTeXFonts.cpp +++ b/src/LaTeXFonts.cpp @@ -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))