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);
92 #endif // end GCN_SDLTRUETYPEFONT_HPP virtual int32_t getHeight() const
Get the height in pixels a text line would occupy.
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.
virtual ~ImageFontBase()
Destructor.
Abstract Font Base Class Uses a pool for rendered strings.
std::map< int32_t, s_glyph > type_glyphs
virtual int32_t getWidth(const std::string &text) const
Get the width in pixels a given text would occupy.
virtual SDL_Surface * renderString(const std::string &text)
ImageFontBase()
Constructor.