VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCharacterEncodingMap.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
12 #include <boost/unordered_map.hpp>
13 
14 namespace makVrv
15 {
16  class DtFreeTypeFace;
17 
21  {
22  public:
23  // CTOR
26 
28  unsigned int encoding() const;
29 
31  bool setEncoding(unsigned int encoding);
32 
35  unsigned int indexOfGlyph(const unsigned int characterCode) const;
36 
39  unsigned int indexInFont(unsigned int characterCode) const;
40 
42  void setGlyphIndex(const unsigned int characterCode, const size_t glyphIndex);
43 
44  protected:
45 
46  typedef boost::unordered_map<unsigned int, unsigned int> CharacterMap;
47 
50 
51  unsigned int myEncoding;
52  static const unsigned int TheCacheSize = 128;
53  unsigned int myIndexCache[TheCacheSize];
54  };
55 }
A class which encapsulates a free type face object.
Definition: DtFreeTypeFace.h:23
unsigned int myEncoding
Definition: DtCharacterEncodingMap.h:51
DtFreeTypeFace * myFace
Definition: DtCharacterEncodingMap.h:48
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
boost::unordered_map< unsigned int, unsigned int > CharacterMap
Definition: DtCharacterEncodingMap.h:46
The character encoding map, maps the character code to a glyph index.
Definition: DtCharacterEncodingMap.h:20
CharacterMap myGlyphMap
Definition: DtCharacterEncodingMap.h:49

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)