Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages

FontManager Class Reference

#include <font.h>

List of all members.


Detailed Description

A collection of fonts.

Author:
Mattias Jansson (mattias@realityrift.com)


Public Member Functions

 FontManager ()
 ~FontManager ()
FontPtr CreateFont (const std::string &rstrName, bool bLoad=true)
FontPtr FindFont (const std::string &rstrName)

Protected Member Functions

void DeregisterFont (Font *pkFont)

Protected Attributes

std::vector< Font * > m_vpkFonts


Constructor & Destructor Documentation

FontManager  ) 
 

~FontManager  ) 
 


Member Function Documentation

void DeregisterFont Font pkFont  )  [protected]
 

Deregister font

Parameters:
pkFont Font

FontPtr CreateFont const std::string &  rstrName,
bool  bLoad = true
 

Create new font

Parameters:
rstrName Font name. If font not found (previously loaded), will try loading font file.
bLoad Will try to load new font if true, if false return unloaded font
Returns:
New font object. If font name is not null string, and font was not found and load failed, a null pointer is returned

FontPtr FindFont const std::string &  rstrName  ) 
 

Locate font

Parameters:
rstrName Font name
Returns:
Font ptr if found


Member Data Documentation

std::vector< Font* > m_vpkFonts [protected]
 

Fonts


The documentation for this class was generated from the following file:
Generated on Wed Jan 21 14:21:11 2004 for NeoEngine by doxygen 1.3.5