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);
82 int32_t mGlyphSpacing;
85 std::string mFilename;
TrueTypeFont(const std::string &filename, int32_t size)
virtual int32_t getHeight() const
virtual int32_t getWidth(const std::string &text) const
credit to phoku for his NodeDisplay example which the visitor code is adapted from ( he coded the qua...