|
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
-
pFont | Pointer to a font. |
pText | Text to get the width for. |
height | Height of the text (width is relative to the height). |
lineWidth | The maximum line width before the string is wrapped onto a new line. |
maxLen | Maximum number of characters to consider from the source string. |
pTotalHeight | Optional 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()
|