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::MeasureTextWidth

Syntax

float FTGlyphCache::MeasureTextWidth(const char *str, FTFont *font, int pointSize);

Computes the width of the given text string when rendered using the given font.

Work in progress:

Todo: in float FTGlyphCache::MeasureTextWidth(const char *str, FTFont *font, int pointSize):
Remove for speed!
Todo: in float FTGlyphCache::MeasureTextWidth(const char *str, FTFont *font, int pointSize):
Remove for speed!

Leave a Comment

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