|
update : 2015.11.03
php.shukuma.com검색:
|
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. 예제
Example #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)
}
Example #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)
}
참고
|