FIFE
2008.0
|
#include <subimagefont.h>
Public Member Functions | |
SubImageFont (const std::string &filename, const std::string &glyphs) | |
![]() | |
ImageFontBase () | |
virtual | ~ImageFontBase () |
virtual int32_t | getWidth (const std::string &text) const |
virtual int32_t | getHeight () const |
![]() | |
void | setRowSpacing (int32_t spacing) |
int32_t | getRowSpacing () const |
void | setGlyphSpacing (int32_t spacing) |
int32_t | getGlyphSpacing () const |
void | setAntiAlias (bool antiAlias) |
bool | isAntiAlias () |
Image * | getAsImage (const std::string &text) |
Image * | getAsImageMultiline (const std::string &text) |
SDL_Color | getColor () const |
![]() | |
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 44 of file subimagefont.h.
FIFE::SubImageFont::SubImageFont | ( | const std::string & | filename, |
const std::string & | glyphs | ||
) |
Constructor.
filename | the filename of the Image Font. |
glyphs | the glyphs for Guichan format. |
Definition at line 48 of file subimagefont.cpp.