FIFE  2008.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
FIFE::SubImageFont Class Reference

#include <subimagefont.h>

Inheritance diagram for FIFE::SubImageFont:
Inheritance graph
Collaboration diagram for FIFE::SubImageFont:
Collaboration graph

List of all members.

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 ()
ImagegetAsImage (const std::string &text)
ImagegetAsImageMultiline (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

Detailed Description

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.


Constructor & Destructor Documentation

FIFE::SubImageFont::SubImageFont ( const std::string &  filename,
const std::string &  glyphs,
ImagePool pool 
)

Constructor.

Parameters:
filenamethe filename of the Image Font.
glyphsthe glyphs for Guichan format.

Definition at line 48 of file subimagefont.cpp.

References FIFE::Pool::addResourceFromFile(), and FIFE::Pool::get().


The documentation for this class was generated from the following files: