#include <SFontLoader.h>
Public Types | |
enum | AlphaLoadingType { NONE, BLACK_MASK, GREY_COLOUR } |
Public Member Functions | |
void | loadFont (const string &name) |
void | setAlphaLoadingType (AlphaLoadingType type) |
void | setAlpha (unsigned char r, unsigned char g, unsigned char b) |
void | setSeperatorColour (unsigned char r, unsigned char g, unsigned char b) |
void | setFontDefinition (const string &definition) |
unsigned char * | getDataForCharacter (char character) |
int | getCharacterWidth (char character) |
int | getCharacterHeight () |
int | getFontHeight () |
int | getFontWidth () |
Definition at line 13 of file SFontLoader.h.
|
An enum defining the way to obtain alpha data from the ppm image
Definition at line 17 of file SFontLoader.h. |
|
Returns the height of the font <=getFontHeight() (in pixels). Definition at line 55 of file SFontLoader.h. |
|
Returns the width of a specific character <=getFontWidth() (in pixels). Definition at line 267 of file SFontLoader.cpp. |
|
Returns a pointer to a raw image of a character, the format is RBGA and the width and height can be found using getFontWidth() and getFontHeight(). Definition at line 262 of file SFontLoader.cpp. |
|
Returns the height of a character data image (in pixels). Always = 2^n Definition at line 57 of file SFontLoader.h. |
|
Returns the width of a character data image (in pixels). Always = 2^m Definition at line 59 of file SFontLoader.h. |
|
Load a font .ppm file (may contain path). Definition at line 35 of file SFontLoader.cpp. |
|
Sets the alpha colour to use with alphaType=BLACK_MASK, default 0,0,0. |
|
Sets the way to get the alpha channel when load is called, default is GREY_COLOUR. Definition at line 34 of file SFontLoader.h. |
|
Sets the fontDefinition to use for the next loadFont fontDefinition is a string containing the letters in the SFont. Definition at line 44 of file SFontLoader.h. |
|
Sets the colour used to separate characters in the SFont file, default 255,0,255. |