Page.getTextWidth

Gets the width of the text in current fontsize, character spacing and word spacing.

class Page
float
getTextWidth
(
string text
)

Parameters

text string

the text to get width.

Return Value

Type: float

When 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.

Meta