summaryrefslogtreecommitdiff
path: root/src/gui/truetypefont.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/truetypefont.h')
-rw-r--r--src/gui/truetypefont.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/truetypefont.h b/src/gui/truetypefont.h
index d42400d8..b3ebcc73 100644
--- a/src/gui/truetypefont.h
+++ b/src/gui/truetypefont.h
@@ -72,11 +72,19 @@ class TrueTypeFont : public gcn::Font
const std::string &text,
int x, int y) override;
+ static void updateFontScale(float scale);
+
private:
+ const std::string mFilename;
TTF_Font *mFont;
+ const int mPointSize;
+
// Word surfaces cache
mutable std::list<TextChunk> mCache;
+
+ static std::list<TrueTypeFont*> mFonts;
+ static float mScale;
};
#endif