#include <fontserver.h>
Inheritance diagram for kerosin::FontServer:
Public Member Functions | |
FontServer () | |
~FontServer () | |
boost::shared_ptr< Font > | GetFont (const std::string &name, unsigned int size=12) |
load a font with a given size | |
boost::shared_ptr< Font > | FindFont (const std::string &name, unsigned int size) const |
test if a specific font has been loaded | |
void | Begin () |
setup opengl states for font rendering | |
void | End () |
reset opengl states after font rendering | |
Protected Member Functions | |
bool | LoadFont (const std::string &name, unsigned int size, boost::shared_ptr< Font > &font) |
Private Types | |
typedef std::list< boost::shared_ptr< kerosin::Font > > | TFontList |
Private Attributes | |
TFontList | mFonts |
the registry of loaded fonts | |
FT_Library | mFreeTypeLib |
FreeType. |
Definition at line 51 of file fontserver.h.
|
Definition at line 76 of file fontserver.h. |
|
Definition at line 14 of file fontserver.cpp. References mFreeTypeLib. |
|
Definition at line 19 of file fontserver.cpp. References mFonts. |
|
setup opengl states for font rendering
Definition at line 115 of file fontserver.cpp. |
|
reset opengl states after font rendering
Definition at line 129 of file fontserver.cpp. |
|
test if a specific font has been loaded
|
|
load a font with a given size
|
|
|
|
the registry of loaded fonts
Definition at line 79 of file fontserver.h. Referenced by ~FontServer(). |
|
FreeType.
Definition at line 82 of file fontserver.h. Referenced by FontServer(). |