Back to class index
FTGlyphCache[Class Summary]
ctor
~dtor
Init(cacheSurfaceSize)
DeInit()
LoadFontFace(filename,faceIndex)
FontFace(filename,faceIndex)
FontFaces()
AtlasTexture()
GetAdvanceX(...)[const] (+1 overload)
CacheCharacter(...)
GetCharacterSize(...)
GetCharacterUVTopLeft(font,ch)
GetCacheTexture()
Occupancy()[const]
MeasureTextWidth(str,font,pointSize)

FTGlyphCache::Init

Syntax

void FTGlyphCache::Init(int cacheSurfaceSize=1024);

Initializes the glyph cache with the given square texture size. Call only once at the beginning.

Work in progress:

Todo: in void FTGlyphCache::Init(int cacheSurfaceSize=1024):
Proper error checking.
Todo: in void FTGlyphCache::Init(int cacheSurfaceSize=1024):

Leave a Comment

Name:
Comments:
Captcha:captcha image Type in the black symbols:
Back to class index