GetFontStringWidth

Calculates width of a string.

Synopsis

int32 GetFontStringWidth (FontDescriptor *fDesc, char *string)

Description

Calculates the width of the specified string. The return value is the sum of the widths of the characters in the string. The sum includes the spacing between each character, but not following the final character.

Arguments

fDesc
Pointer to a FontDescriptor structure.
string
The character string.

Return Value

Width of the string.

Associated Files

lib3do.lib, fontlib.h

See Also

GetFontCharWidth