#include <FontCacheFreeType.h>

Public Member Functions | |
| CFontCacheFreeType (const FT_Library &pFTLib, const FontResource_t &eFontID, const eC_UInt &uiInitialCacheSize, const eC_Bool &bAutoResize, const eC_UInt &uiResizeBy) | |
| virtual | ~CFontCacheFreeType () |
Public Member Functions inherited from CFontCache | |
| CFontCache (const FontResource_t &eFontID, const eC_UInt &uiInitialCacheSize, const eC_Bool &bAutoResize, const eC_UInt &uiResizeBy) | |
| virtual | ~CFontCache () |
| eC_Int | GetAscender () const |
| CachedChar_t | GetChar (const eC_UInt &uiUnicode) |
| eC_Int | GetDescender () const |
| void * | GetFace () |
| eC_Int | GetHeight () const |
| eC_Int | GetInternalLeading () const |
Protected Member Functions | |
| CFontCacheFreeType (const CFontCacheFreeType &kSource) | |
| virtual CachedChar_t | AddChar (const eC_UInt &uiUnicode, const eC_UInt &uiPos) |
| CFontCacheFreeType & | operator= (const CFontCacheFreeType &kSource) |
Protected Member Functions inherited from CFontCache | |
| CFontCache (const CFontCache &kSource) | |
| virtual CachedChar_t | AddChar (const eC_UInt &uiUnicode, const eC_UInt &uiPos)=0 |
| eC_Int | FindChar (const eC_UInt &uiUnicode) |
| eC_UInt | FindLowestTimestampPos () |
| CFontCache & | operator= (const CFontCache &kSource) |
| virtual void | RemoveChar (const eC_UInt &uiPos) |
| void | Sort () |
| void | Swap (CachedChar_t *pPosA, CachedChar_t *pPosB) |
Additional Inherited Members | |
Protected Attributes inherited from CFontCache | |
| eC_TArray< CachedChar_t > | m_asCache |
| The dynamic cache array. | |
| eC_Bool | m_bArrayNeedsSorting |
| sorting needed after modification | |
| eC_Bool | m_bAutoResize |
| auto-resize | |
| eC_Bool | m_bUseTimeStamp |
| timestamp | |
| FontResource_t | m_eFontID |
| loaded font | |
| eC_Int | m_iAscender |
| ascender | |
| eC_Int | m_iDescender |
| descender | |
| eC_Int | m_iHeight |
| height of font | |
| eC_Int | m_iInternalLeading |
| internal leading | |
| void * | m_pkFace |
| face of font | |
| eC_UInt | m_uiNextGlyphIndex |
| index of next glyph | |
| eC_UInt | m_uiResizeBy |
| resize by amount | |
| eC_UInt | m_uiTimer |
| current timer | |
This class is used to cache glyphs loaded by FreeType. It stores the cache information for one Font.
| CFontCacheFreeType::CFontCacheFreeType | ( | const FT_Library & | pFTLib, |
| const FontResource_t & | eFontID, | ||
| const eC_UInt & | uiInitialCacheSize, | ||
| const eC_Bool & | bAutoResize, | ||
| const eC_UInt & | uiResizeBy | ||
| ) |
Constructor
| pFTLib | Pointer of initialized FreeType library. |
| eFontID | ID of selected font. |
| uiInitialCacheSize | initial number of simultaneously cached characters. If parameter equals zero the cache will automatically be resized to be large enough to contain all required characters. |
| bAutoResize | if true the cache gets resized if not big enough to hold new entries |
| uiResizeBy | number of elements which are added on resize |
|
virtual |
Destructor
|
protected |
Copy-constructor. Dummy implementation to avoid unintended use of compiler-generated default
| kSource |
|
protectedvirtual |
Adds a character to the cache array and sorts array afterwards.
| uiUnicode | Unicode to add to array. |
| uiPos | Position in array where the character should be added. |
Implements CFontCache.
|
protected |
Operator= method. Dummy implementation to avoid unintended use of compiler-generated default
| kSource |