| | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
CairoContext::fontExtentscairo_font_extents(PECL cairo >= 0.1.0) CairoContext::fontExtents -- cairo_font_extents — Get the font extents 説明オブジェクト指向型 (method):
public array CairoContext::fontExtents
( void
)
手続き型: Gets the font extents for the currently selected font. パラメータ
返り値An array containing the font extents for the current font. 例
例1 オブジェクト指向型
<?php上の例の出力は、 たとえば以下のようになります。
array(5) {
["ascent"]=>
float(10)
["descent"]=>
float(3)
["height"]=>
float(13.3125)
["max_x_advance"]=>
float(26.65625)
["max_y_advance"]=>
float(0)
}
例2 手続き型
<?php上の例の出力は、 たとえば以下のようになります。
array(5) {
["ascent"]=>
float(10)
["descent"]=>
float(3)
["height"]=>
float(13.3125)
["max_x_advance"]=>
float(26.65625)
["max_y_advance"]=>
float(0)
}
参考
|
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「CairoContext::fontExtents - Get the font extents」をGoogle検索
|