Forum und email

cpdf_stringwidth

(PHP 4, PHP 5 <= 5.0.5)

cpdf_stringwidth — 現在のフォントのテキストの幅を返す

説明

float cpdf_stringwidth ( int $pdf_document , string $text )

文字列 text の幅を返します。

この関数は、フォントがあらかじめ設定されている必要があります。

パラメータ

pdf_document

cpdf_open() が返す、ドキュメントのハンドル。

text

テキストを表す文字列。

返り値

text の幅を返します。