From a11b25f3f533a125cbf47e8e0f74501a5dd5e6d8 Mon Sep 17 00:00:00 2001 From: y5nw <37980625+y5nw@users.noreply.github.com> Date: Fri, 28 Feb 2025 10:49:52 +0100 Subject: [PATCH] Use fallback font correctly for fonts provided by the server --- src/client/fontengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/fontengine.cpp b/src/client/fontengine.cpp index 965b4ab15..a8c6d4b3e 100644 --- a/src/client/fontengine.cpp +++ b/src/client/fontengine.cpp @@ -278,7 +278,7 @@ gui::IGUIFont *FontEngine::initFont(const FontSpec &spec) }; auto it = m_media_faces.find(media_name); - if (it != m_media_faces.end()) { + if (spec.mode != _FM_Fallback && it != m_media_faces.end()) { auto *face = it->second.get(); if (auto *font = createFont(face)) return font;