Polycode::FontManager Class Reference

Manages fonts. More...

List of all members.

Public Member Functions

void registerFont (const String &fontName, const String &fontPath)
 Loads and registers a new font for use.
Font * getFontByName (const String &fontName)
 Retuns a font based on the registerd font name.

Detailed Description

Manages fonts.

The font manager shoudl only be accessed via the CoreServices singleton.


Member Function Documentation

Font * FontManager::getFontByName ( const String fontName  ) 

Retuns a font based on the registerd font name.

Parameters:
fontName Name of registered font name.
Returns:
The font instance associated with the font name or NULL if one doesn't exist.
void FontManager::registerFont ( const String fontName,
const String fontPath 
)

Loads and registers a new font for use.

Parameters:
fontName Name to register the font as.
fontPath Filename of the font to load.
Generated on Sat Aug 11 18:04:11 2012 for Polycode by  doxygen 1.6.3