downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

HaruPage::moveTextPos> <HaruPage::lineTo
Last updated: Fri, 13 Nov 2009

view this page in

HaruPage::measureText

(PECL haru >= 0.0.1)

HaruPage::measureText指定した幅の中に配置できる文字の数を計算する

説明

int HaruPage::measureText ( string $text , float $width [, bool $wordwrap = false ] )

指定した幅の中に配置できる文字の数を返します。

パラメータ

text

調べたいテキスト。

width

テキストを配置する範囲の幅。

wordwrap

このパラメータを TRUE に設定すると、ワードラップ処理を "エミュレート" します。現在の単語の途中で範囲の最後に到達してしまう場合に その単語を含めません。デフォルトは FALSE です。

返り値

指定した幅の中に配置できる文字の数を返します。

エラー / 例外

エラー時に HaruException をスローします。

参考



add a note add a note User Contributed Notes
HaruPage::measureText
There are no user contributed notes for this page.

HaruPage::moveTextPos> <HaruPage::lineTo
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites