VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes | Static Protected Attributes
makVrv::DtCharacterEncodingMap Class Reference

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

DtFreeTypeFacemyFace
 
CharacterMap myGlyphMap
 
unsigned int myEncoding
 
unsigned int myIndexCache [TheCacheSize]
 

Static Protected Attributes

static const unsigned int TheCacheSize = 128
 

Detailed Description

The character encoding map, maps the character code to a glyph index.

Member Typedef Documentation

typedef boost::unordered_map<unsigned int, unsigned int> makVrv::DtCharacterEncodingMap::CharacterMap
protected

Constructor & Destructor Documentation

makVrv::DtCharacterEncodingMap::DtCharacterEncodingMap ( DtFreeTypeFace face)
makVrv::DtCharacterEncodingMap::~DtCharacterEncodingMap ( )

Member Function Documentation

unsigned int makVrv::DtCharacterEncodingMap::encoding ( ) const

Get the current encoding.

bool makVrv::DtCharacterEncodingMap::setEncoding ( unsigned int  encoding)

Set the encoding of the.

unsigned int makVrv::DtCharacterEncodingMap::indexOfGlyph ( const unsigned int  characterCode) const

Get Glyph index.

Returns
0 if the glyph is not found.
unsigned int makVrv::DtCharacterEncodingMap::indexInFont ( unsigned int  characterCode) const

Get index in font.

Returns
0 if the character is not found.
void makVrv::DtCharacterEncodingMap::setGlyphIndex ( const unsigned int  characterCode,
const size_t  glyphIndex 
)

Add a character index.

Member Data Documentation

DtFreeTypeFace* makVrv::DtCharacterEncodingMap::myFace
protected
CharacterMap makVrv::DtCharacterEncodingMap::myGlyphMap
protected
unsigned int makVrv::DtCharacterEncodingMap::myEncoding
protected
const unsigned int makVrv::DtCharacterEncodingMap::TheCacheSize = 128
staticprotected
unsigned int makVrv::DtCharacterEncodingMap::myIndexCache[TheCacheSize]
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)