CairoFontFace::status

cairo_font_face_status

(PECL cairo >= 0.1.0)

CairoFontFace::status -- cairo_font_face_statusCheck for CairoFontFace errors

说锟斤拷

锟斤拷锟斤拷锟斤拷锟斤拷锟� (method):

public CairoFontFace::status ( void ) : int

锟斤拷锟教伙拷锟斤拷锟�:

cairo_font_face_status ( CairoFontFace $fontface ) : int

Checks whether an error has previously occurred for this font face

锟斤拷锟斤拷

fontface

A valid CairoFontFace object

锟斤拷锟斤拷值

CAIRO_STATUS_SUCCESS or another error such as CAIRO_STATUS_NO_MEMORY.

锟斤拷锟斤拷

Example #1 锟斤拷锟斤拷锟斤拷锟斤拷锟�

<?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

?>

锟斤拷锟斤拷锟斤拷锟教碉拷锟斤拷锟斤拷锟斤拷锟斤拷冢锟�

int(0)

Example #2 锟斤拷锟教伙拷锟斤拷锟�

<?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

?>

锟斤拷锟斤拷锟斤拷锟教碉拷锟斤拷锟斤拷锟斤拷锟斤拷冢锟�

int(0)

锟轿硷拷

  • Classname::Method()