mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Use fallback font correctly for fonts provided by the server
This commit is contained in:
parent
90121dc66f
commit
a11b25f3f5
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ gui::IGUIFont *FontEngine::initFont(const FontSpec &spec)
|
||||||
};
|
};
|
||||||
|
|
||||||
auto it = m_media_faces.find(media_name);
|
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();
|
auto *face = it->second.get();
|
||||||
if (auto *font = createFont(face))
|
if (auto *font = createFont(face))
|
||||||
return font;
|
return font;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue