Mount Fuji Engine  0.8b
MF_API float MFFont_GetStringWidth ( MFFont pFont,
const char *  pText,
float  height,
float  lineWidth = 0.0f,
int  maxLen = -1,
float *  pTotalHeight = NULL 
)

Gets the physical width of a string.

Parameters
pFontPointer to a font.
pTextText to get the width for.
heightHeight of the text (width is relative to the height).
lineWidthThe maximum line width before the string is wrapped onto a new line.
maxLenMaximum number of characters to consider from the source string.
pTotalHeightOptional pointer to a float that receives the total height of the specified string.
Returns
The physical width of the specified string rendered by the specified font.
See Also
MFFont_Create()