CAIRO_FONT_FACE_STATUS(3) 1 CAIRO_FONT_FACE_STATUS(3)
CairoFontFace::status - Check for CairoFontFace errors
Object oriented style (method):
SYNOPSIS
public int CairoFontFace::status (void )
DESCRIPTION
Procedural style:
int cairo_font_face_status (CairoFontFace $fontface)
Checks whether an error has previously occurred for this font face
PARAMETERS
o $fontface
- A valid CairoFontFace object
RETURN VALUES
CAIRO_STATUS_SUCCESS or another error such as CAIRO_STATUS_NO_MEMORY.
EXAMPLES
Example #1
Object oriented style
<?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
?>
The above example will output something similar to:
int(0)
Example #2
Procedural style
<?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
?>
The above example will output something similar to:
int(0)
SEE ALSO
Classname::Method.
PHP Documentation Group CAIRO_FONT_FACE_STATUS(3)