HaruPage::getTextWidth

(PECL haru >= 0.0.1)

HaruPage::getTextWidthGet the width of the text using current fontsize, character spacing and word spacing

Beskrivelse

float HaruPage::getTextWidth ( string $text )

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

Parametre

text

The text to measure.

Returnerings Værdier

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

Fejl/Undtagelser

Throws a HaruException on error.

Se også

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top