Osiris Framework
0.3
|
Font handler. More...
#include <OsirisSDK/OFont.h>
Classes | |
struct | CacheEntry |
Public Member Functions | |
OFont (const char *fontName) | |
Class constructor. More... | |
~OFont () | |
Class destructor. | |
void | cleanCache () |
Clean font cache: texture data and dimensions for each character and size. | |
const CacheEntry * | entry (char character, int size) |
Returns the font cache entry related to a given character and size. | |
Font handler.
This class will serve as a reference for font usage, storing within it's object font data cache in order to avoid frequent accesses to the font files.
OFont::OFont | ( | const char * | fontName | ) |
Class constructor.
fontName | File name of the font. If running under windows without providing a path, the constructor will look on the default font directory (WINDIR%/fonts). |