downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

CairoFontOptions> <CairoFontFace::getType
Last updated: Fri, 20 May 2011

view this page in

CairoFontFace::status

cairo_font_face_status

(PECL cairo >= 0.1.0)

CairoFontFace::status -- cairo_font_face_statusCompruba errores de CairoFontFace

Descripción

Estilo orientado a objetos (método):

public int CairoFontFace::status ( void )

Estilo procedural:

int cairo_font_face_status ( CairoFontFace $fontface )

Comprueba si previamente ocurrió un error para esta familia de fuentes

Parámetros

fontface

Un objeto CairoFontFace válido

Valores devueltos

CAIRO_STATUS_SUCCESS u otro error como CAIRO_STATUS_NO_MEMORY.

Ejemplos

Example #1 Estilo orientado a objetos

<?php

// Crea la familia de fuentes
$fontface = new CairoToyFontFace('sans-serif');

// Obtener el estado de la familia de fuentes
var_dump($fontface->status()); // debería ser el valor de CAIRO_STATUS_SUCCESS

?>

El resultado del ejemplo sería algo similar a:

int(0)

Example #2 Estilo procedural

<?php

// Crea la familia de fuentes
$fontface = new CairoToyFontFace('sans-serif');

// Obtener el estado de la familia de fuentes
var_dump(cairo_font_face_status($fontface)); // debería ser el valor de CAIRO_STATUS_SUCCESS

?>

El resultado del ejemplo sería algo similar a:

int(0)

Ver también

  • Classname::Method()



add a note add a note User Contributed Notes CairoFontFace::status
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites