CairoFontFace::status
cairo_font_face_status
(PECL cairo >= 0.1.0)
CairoFontFace::status -- cairo_font_face_status — Check for CairoFontFace errors
Descrierea
Stil obiect-orientat (method):
public int CairoFontFace::status
( void
)
Stil procedural:
Checks whether an error has previously occurred for this font face
Parametri
-
fontface -
A valid CairoFontFace object
Valorile întoarse
CAIRO_STATUS_SUCCESS or another error such as CAIRO_STATUS_NO_MEMORY.
Exemple
Example #1 Stil obiect-orientat
<?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
?>
Exemplul de mai sus va afișa ceva similar cu:
int(0)
Example #2 Stil procedural
<?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
?>
Exemplul de mai sus va afișa ceva similar cu:
int(0)
Vedeți de asemenea
- Classname::Method()
There are no user contributed notes for this page.
