HaruPage
PHP Manual

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.

Грешки/Изключения

Throws a HaruException on error.

Вж. също


HaruPage
PHP Manual