CairoFontFace::status
cairo_font_face_status
(PECL cairo >= 0.1.0)
CairoFontFace::status -- cairo_font_face_status — Check for CairoFontFace errors
Descrição
Estilo orientado a objetos (method):
public int CairoFontFace::status
( void
)
Estilo de procedimentos:
Checks whether an error has previously occurred for this font face
Parâmetros
- fontface
-
A valid CairoFontFace object
Valor Retornado
CAIRO_STATUS_SUCCESS or another error such as CAIRO_STATUS_NO_MEMORY.
Exemplos
Exemplo #1 Estilo orientado a objetos
<?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
?>
O exemplo acima irá imprimir algo similar a:
int(0)
Exemplo #2 Estilo de procedimentos
<?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
?>
O exemplo acima irá imprimir algo similar a:
int(0)
Veja Também
- Classname::Method()
There are no user contributed notes for this page.
