CairoFontFace::status
cairo_font_face_status
(PECL cairo >= 0.1.0)
CairoFontFace::status -- cairo_font_face_status — Check for CairoFontFace errors
Descrizione
Stile orientato agli oggetti (method):
public int CairoFontFace::status
( void
)
Stile procedurale:
Checks whether an error has previously occurred for this font face
Elenco dei parametri
-
fontface -
A valid CairoFontFace object
Valori restituiti
CAIRO_STATUS_SUCCESS or another error such as CAIRO_STATUS_NO_MEMORY.
Esempi
Example #1 Stile orientato agli oggetti
<?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
?>
Il precedente esempio visualizzerĂ qualcosa simile a:
int(0)
Example #2 Stile procedurale
<?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
?>
Il precedente esempio visualizzerĂ qualcosa simile a:
int(0)
Vedere anche:
- Classname::Method()
There are no user contributed notes for this page.
