Osiris Framework  0.3
OFont Class Reference

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 CacheEntryentry (char character, int size)
 Returns the font cache entry related to a given character and size.
 

Detailed Description

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.

Constructor & Destructor Documentation

OFont::OFont ( const char *  fontName)

Class constructor.

Parameters
fontNameFile name of the font. If running under windows without providing a path, the constructor will look on the default font directory (WINDIR%/fonts).

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