|
FIFE
2008.0
|
#include <imagefontbase.h>


Public Member Functions | |
| ImageFontBase () | |
| virtual | ~ImageFontBase () |
| virtual int | getWidth (const std::string &text) const |
| virtual int | getHeight () const |
Public Member Functions inherited from FIFE::FontBase | |
| void | setRowSpacing (int spacing) |
| int | getRowSpacing () const |
| void | setGlyphSpacing (int spacing) |
| int | getGlyphSpacing () const |
| void | setAntiAlias (bool antiAlias) |
| bool | isAntiAlias () |
| Image * | getAsImage (const std::string &text) |
| Image * | getAsImageMultiline (const std::string &text) |
| SDL_Color | getColor () const |
Public Member Functions inherited from FIFE::AbstractFont | |
| virtual void | setColor (uint8_t r, uint8_t g, uint8_t b, uint8_t a=255)=0 |
ImageFont base class
Just set the glyphs/placeholder in any derived class and the rendering is handled by this class. Also frees all glyph surfaces on destruction.
Definition at line 46 of file imagefontbase.h.
| FIFE::ImageFontBase::ImageFontBase | ( | ) |
Constructor.
Definition at line 45 of file imagefontbase.cpp.
|
virtual |
Destructor.
Definition at line 48 of file imagefontbase.cpp.
|
virtual |
Get the height in pixels a text line would occupy
Implements FIFE::AbstractFont.
Definition at line 75 of file imagefontbase.cpp.
|
virtual |
Get the width in pixels a given text would occupy
| text | The text that should be measured. |
Implements FIFE::AbstractFont.
Definition at line 56 of file imagefontbase.cpp.
References FIFE::FontBase::getGlyphSpacing().