haru
PHP Manual

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.

参见


haru
PHP Manual