public float textWidth(string text)
Gets the width of the text in current fontsize, character spacing and word spacing.
Parameters
text | the text to get width. |
Returns
when textWidth() succeed, it returns the width of the text in current fontsize, character spacing and word spacing. Otherwise it returns ZERO and error-handler is called.