CairoFontFace::status
cairo_font_face_status
(PECL cairo >= 0.1.0)
CairoFontFace::status -- cairo_font_face_status — Check for CairoFontFace errors
说明
面向对象风格 (method):
public
CairoFontFace::status (
void ) :
int
过程化风格:
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)
参见
- Classname::Method()