OpenPolygon  1.0.0
OpenPolygon is a Rendering Engine
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Engine::FontManager Class Reference

The FontManager managed the Fonts. More...

#include <fontmanager.h>

Public Types

using CharMapping = std::map< char, Texture * >
 

Public Member Functions

void finish (void)
 
FontAtlas createFontAtlas (const std::string &ttf_file)
 
FT_Face createFontFace (const std::string &ttf_file)
 createFontFace More...
 
void load (FT_Face face, const std::string &asci)
 load More...
 
void unload (void)
 
TexturegetCharTexture (char c) throw ( std::runtime_error )
 getCharTexture More...
 
void CharRegister (char c, Texture *buffer)
 CharRegister. More...
 

Static Public Member Functions

static FontManagergetSingletonPtr (void)
 getSingletonPtr More...
 

Protected Member Functions

Vector2f getAtlasVector (FT_Face font)
 

Detailed Description

The FontManager managed the Fonts.

Managemant of Fonts

Member Typedef Documentation

using Engine::FontManager::CharMapping = std::map< char , Texture * >

Save Char Textures

Member Function Documentation

void FontManager::CharRegister ( char  c,
Texture buffer 
)

CharRegister.

Save a char with Pixeldata ( aka. Texture )

Parameters
c
buffer
FT_Face FontManager::createFontFace ( const std::string &  ttf_file)

createFontFace

Create Font from .ttf file

Parameters
ttf_file
Returns
Texture * FontManager::getCharTexture ( char  c)
throw (std::runtime_error
)

getCharTexture

Return Texture by char

Parameters
c
Returns
FontManager * FontManager::getSingletonPtr ( void  )
static

getSingletonPtr

Return FontManager Instance

Returns
void FontManager::load ( FT_Face  face,
const std::string &  asci 
)

load

Load FontFace and create Char Textures

Parameters
face
asci: !#$%&'()*+,-./0123456789:;<=>?[\]^_`abcdefghijklmnopqrstuvwxyz{|}~

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