22 #ifndef FIFE_FONTS_TRUETYPEFONT_H 23 #define FIFE_FONTS_TRUETYPEFONT_H 69 virtual int32_t
getWidth(
const std::string& text)
const;
79 virtual SDL_Surface *
renderString(
const std::string& text);
virtual void setItalicStyle(bool style)
Sets the use of italic style.
virtual SDL_Surface * renderString(const std::string &text)
virtual void setStrikethroughStyle(bool style)
Sets the use of strikethrough style.
virtual int32_t getHeight() const
gets height of this font
virtual int32_t getWidth(const std::string &text) const
gets width of given text
virtual int32_t getFontStyleMask() const
TrueTypeFont(const std::string &filename, int32_t size)
Constructor.
Abstract Font Base Class Uses a pool for rendered strings.
virtual ~TrueTypeFont()
Destructor.
virtual void setBoldStyle(bool style)
Sets the use of bold style.
virtual void setUnderlineStyle(bool style)
Sets the use of underline style.
SDL True Type Font implementation of Font.
virtual void setColor(uint8_t r, uint8_t g, uint8_t b, uint8_t a=255)
Set the color the text should be rendered in.