22 #ifndef FIFE_FONTS_IMAGEFONTBASE_H
23 #define FIFE_FONTS_IMAGEFONTBASE_H
62 virtual int32_t
getWidth(
const std::string& text)
const;
68 virtual SDL_Surface *
renderString(
const std::string& text);
69 virtual void setColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a = 255);
97 #endif // end GCN_SDLTRUETYPEFONT_HPP
virtual int32_t getWidth(const std::string &text) const
Get the width in pixels a given text would occupy.
virtual void setColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a=255)
virtual ~ImageFontBase()
Destructor.
Abstract Font Base Class Uses a pool for rendered strings.
std::map< int32_t, s_glyph > type_glyphs
virtual SDL_Surface * renderString(const std::string &text)
virtual int32_t getHeight() const
Get the height in pixels a text line would occupy.
ImageFontBase()
Constructor.