©
本文档使用
php.cn手册 发布
(PECL haru >= 0.0.1)
HaruPage::getTextWidth — Get the width of the text using current fontsize, character spacing and word spacing
$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 异常。