(PECL cairo >= 0.1.0)
CairoFontFace::status -- cairo_font_face_status — Check for CairoFontFace errors
객체 기반 형식 (method):
절차식 형식:
Checks whether an error has previously occurred for this font face
fontface
A valid CairoFontFace object
CAIRO_STATUS_SUCCESS or another error such as CAIRO_STATUS_NO_MEMORY.
Example #1 객체 기반 형식
<?php
// Creates the font face
$fontface = new CairoToyFontFace('sans-serif');
// Get the font face status
var_dump($fontface->status()); // should be the value of CAIRO_STATUS_SUCCESS
?>
위 예제의 출력 예시:
int(0)
Example #2 절차식 형식
<?php
// Creates the font face
$fontface = new CairoToyFontFace('sans-serif');
// Get the font face status
var_dump(cairo_font_face_status($fontface)); // should be the value of CAIRO_STATUS_SUCCESS
?>
위 예제의 출력 예시:
int(0)