Forum und email

HaruPage::getTextWidth

(PECL haru:0.0.1)

HaruPage::getTextWidth — Get the width of the text using current fontsize, character spacing and word spacing

說明

float HaruPage::getTextWidth ( string $text )

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

參數

text

The text to measure.

錯誤/例外

Throws HaruException on error.