|
FIFE
2008.0
|
#include <subimagefont.h>


Public Member Functions | |
| SubImageFont (const std::string &filename, const std::string &glyphs, ImagePool &pool) | |
Public Member Functions inherited from FIFE::ImageFontBase | |
| 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 that is able to read glyphs from single image sheet, see e.g. guichan imagefontcollection (google for it)
Definition at line 45 of file subimagefont.h.
| FIFE::SubImageFont::SubImageFont | ( | const std::string & | filename, |
| const std::string & | glyphs, | ||
| ImagePool & | pool | ||
| ) |
Constructor.
| filename | the filename of the Image Font. |
| glyphs | the glyphs for Guichan format. |
Definition at line 48 of file subimagefont.cpp.
References FIFE::Pool::addResourceFromFile(), and FIFE::Pool::get().