diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-22 08:17:10 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-22 08:17:10 +1000 |
commit | 52dae03aae84afa78a9dbfc68976e99fd1b20ee2 (patch) | |
tree | 90977a5c89733bbe98f8257ae520ceb9f69bd6cd /source/rendering/StarTextPainter.cpp | |
parent | ca1426eabc873f781eb0dd389d45634b7d183250 (diff) |
Add UnifontEx fallback for glyphs that are missing from the current font
Diffstat (limited to 'source/rendering/StarTextPainter.cpp')
-rw-r--r-- | source/rendering/StarTextPainter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/rendering/StarTextPainter.cpp b/source/rendering/StarTextPainter.cpp index 8198969..19e48f1 100644 --- a/source/rendering/StarTextPainter.cpp +++ b/source/rendering/StarTextPainter.cpp @@ -331,6 +331,7 @@ void TextPainter::reloadFonts() { loadFontsByExtension("ttf"); loadFontsByExtension("woff2"); m_fontTextureGroup.addFont(defaultFont, defaultName, true); + m_fontTextureGroup.setFallbackFont("unifont"); } void TextPainter::cleanup(int64_t timeout) { |