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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/truetypefont.h b/src/gui/truetypefont.h
index bd338d84..017bc4fc 100644
--- a/src/gui/truetypefont.h
+++ b/src/gui/truetypefont.h
@@ -22,6 +22,7 @@
#ifndef TRUETYPEFONT_H
#define TRUETYPEFONT_H
+#include <list>
#include <string>
#include <guichan/font.hpp>
@@ -31,6 +32,8 @@
#include <SDL_ttf.h>
#endif
+class TextChunk;
+
/**
* A wrapper around SDL_ttf for allowing the use of TrueType fonts.
*
@@ -63,6 +66,9 @@ class TrueTypeFont : public gcn::Font
private:
TTF_Font *mFont;
+
+ // Word surfaces cache
+ std::list<TextChunk> cache;
};
#endif