HaruPage::getTextWidth

(PECL haru >= 0.0.1)
Get the width of the text using current fontsize, character spacing and word spacing
float HaruPage::getTextWidth ( string $text )

Get the width of the text using current fontsize, character spacing and word spacing

Parameters:
text

The text to measure.

Returns:

Returns the width of the text using current fontsize, character spacing and word spacing.

Exception:

Throws a HaruException on error.

See also:

HaruPage::measureText() -

doc_php
2016-02-24 16:03:23
Comments
Leave a Comment

Please login to continue.