HaruPage::getTextWidth

(PECL haru >= 0.0.1)

HaruPage::getTextWidthGet 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

Параметри

text

The text to measure.

Значення, що повертаються

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

Помилки/Винятки

При помилці кидає HaruException.

Прогляньте Також

  • HaruPage::measureText() - Calculate the byte length of characters which can be included on one line of the specified width

add a note add a note

User Contributed Notes

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