22 #ifndef FIFE_FONTS_TRUETYPEFONT_H
23 #define FIFE_FONTS_TRUETYPEFONT_H
69 virtual int32_t
getWidth(
const std::string& text)
const;
74 virtual SDL_Surface *
renderString(
const std::string& text);
76 virtual void setColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a = 255);
virtual SDL_Surface * renderString(const std::string &text)
virtual void setColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a=255)
TrueTypeFont(const std::string &filename, int32_t size)
Constructor.
Abstract Font Base Class Uses a pool for rendered strings.
virtual ~TrueTypeFont()
Destructor.
SDL True Type Font implementation of Font.
virtual int32_t getHeight() const
gets height of this font
virtual int32_t getWidth(const std::string &text) const
gets width of given text