Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/rendering/StarFontTextureGroup.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/rendering/StarFontTextureGroup.hpp')
-rw-r--r--source/rendering/StarFontTextureGroup.hpp3
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;