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/StarFontTextureGroup.hpp | |
parent | ca1426eabc873f781eb0dd389d45634b7d183250 (diff) |
Add UnifontEx fallback for glyphs that are missing from the current font
Diffstat (limited to 'source/rendering/StarFontTextureGroup.hpp')
-rw-r--r-- | source/rendering/StarFontTextureGroup.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/rendering/StarFontTextureGroup.hpp b/source/rendering/StarFontTextureGroup.hpp index 9a32daf..864b44f 100644 --- a/source/rendering/StarFontTextureGroup.hpp +++ b/source/rendering/StarFontTextureGroup.hpp @@ -37,11 +37,14 @@ public: String const& activeFont(); void addFont(FontPtr const& font, String const& name, bool isDefault = false); void clearFonts(); + void setFallbackFont(String const& fontName); + private: CaseInsensitiveStringMap<FontPtr> m_fonts; String m_fontName; FontPtr m_font; FontPtr m_defaultFont; + FontPtr m_fallbackFont; TextureGroupPtr m_textureGroup; HashMap<GlyphDescriptor, GlyphTexture> m_glyphs; |