您的位置:寻梦网首页编程乐园PHP 编程PHP5中文手册
PHP5中文手册

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.