CairoFontFace::status

cairo_font_face_status

(PECL cairo >= 0.1.0)

CairoFontFace::status -- cairo_font_face_statusCheck for CairoFontFace errors

Опис

Об'єктно-орієнтований стиль (method):

public int CairoFontFace::status ( void )

Процедурний стиль:

int cairo_font_face_status ( CairoFontFace $fontface )

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.

Приклади

Приклад #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)

Приклад #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()

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top