Skip to content

Commit

Permalink
Use fallback font correctly for fonts provided by the server
Browse files Browse the repository at this point in the history
  • Loading branch information
y5nw committed Feb 28, 2025
1 parent 90121dc commit b9be469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/fontengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b9be469

Please sign in to comment.