commit 833c37293147cec14500a208c8ca98cdc010346d
Author: Juergen Spitzmueller <[email protected]>
Date:   Wed Nov 13 09:02:49 2024 +0100

    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))
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to