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.

예제

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()

add a note add a note

User Contributed Notes

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