![]() |
VR-Forces 4.10 Class Documentation
|
The character encoding map, maps the character code to a glyph index. More...
Public Member Functions | |
| DtCharacterEncodingMap (DtFreeTypeFace *face) | |
| ~DtCharacterEncodingMap () | |
| unsigned int | encoding () const |
| Get the current encoding. More... | |
| bool | setEncoding (unsigned int encoding) |
| Set the encoding of the. More... | |
| unsigned int | indexOfGlyph (const unsigned int characterCode) const |
| Get Glyph index. More... | |
| unsigned int | indexInFont (unsigned int characterCode) const |
| Get index in font. More... | |
| void | setGlyphIndex (const unsigned int characterCode, const size_t glyphIndex) |
| Add a character index. More... | |
Protected Types | |
| typedef boost::unordered_map < unsigned int, unsigned int > | CharacterMap |
Protected Attributes | |
| DtFreeTypeFace * | myFace |
| CharacterMap | myGlyphMap |
| unsigned int | myEncoding |
| unsigned int | myIndexCache [TheCacheSize] |
Static Protected Attributes | |
| static const unsigned int | TheCacheSize = 128 |
The character encoding map, maps the character code to a glyph index.
|
protected |
| makVrv::DtCharacterEncodingMap::DtCharacterEncodingMap | ( | DtFreeTypeFace * | face | ) |
| makVrv::DtCharacterEncodingMap::~DtCharacterEncodingMap | ( | ) |
Get Glyph index.
Get index in font.
| void makVrv::DtCharacterEncodingMap::setGlyphIndex | ( | const unsigned int | characterCode, |
| const size_t | glyphIndex | ||
| ) |
Add a character index.
|
protected |
|
protected |
|
protected |