cpdf_stringwidth
cpdf_stringwidth — 現在のフォントのテキストの幅を返す
説明
float cpdf_stringwidth ( int pdf_document, string text )文字列 text の幅を返します。
この関数は、フォントがあらかじめ設定されている必要があります。
パラメータ
- pdf_document
-
cpdf_open() が返す、ドキュメントのハンドル。
- text
-
テキストを表す文字列。
返り値
text の幅を返します。参考
cpdf_set_font() |
- cpdf_stringwidthのページへのリンク