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.

錯誤/例外

發生錯誤時拋出 HaruException 異常。

參見

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top