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

search for in the

ps_symbol> <ps_symbol_name
[edit] Last updated: Fri, 25 May 2012

view this page in

ps_symbol_width

(PECL ps >= 1.2.0)

ps_symbol_widthグリフの幅を取得する

説明

float ps_symbol_width ( resource $psdoc , int $ord [, int $fontid = 0 [, float $size = 0.0 ]] )

指定されたフォントとサイズで出力した場合に、 グリフの幅が何ポイントになるかを計算します。正確な幅を計算するため、 この関数は Adobe のフォントメトリックファイルを必要とします。

パラメータ

psdoc

ps_new() が返す、postscript ファイルのリソース ID。

ord

ord は、 フォントエンコーディングベクタの中でのグリフの位置です。

fontid

使用するフォントの ID。フォントが指定されていない場合は、 現在のフォントが使用されます。

size

フォントのサイズ。指定されていない場合は現在のサイズが使用されます。

返り値

グリフの幅をポイント数で返します。

参考



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

 
show source | credits | stats | sitemap | contact | advertising | mirror sites