CairoFontFace::status

(PECL cairo >= 0.1.0)
Check for CairoFontFace errors
public int CairoFontFace::status ( void )

Object oriented style (method):

Procedural style:

int cairo_font_face_status ( CairoFontFace $fontface )

Checks whether an error has previously occurred for this font face

Parameters:
fontface

A valid CairoFontFace object

Returns:

CAIRO_STATUS_SUCCESS or another error such as CAIRO_STATUS_NO_MEMORY.

Examples:
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)
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)
doc_php
2016-02-24 15:59:20
Comments
Leave a Comment

Please login to continue.