PHP Doku:: Check for CairoFontFace errors - cairofontface.status.html

Verlauf / Chronik / History: (6) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzBildverarbeitung und -generierungCairoThe CairoFontFace classCairoFontFace::status -- cairo_font_face_status

Ein Service von Reinhard Neidl - Webprogrammierung.

The CairoFontFace class

<<CairoFontFace::getType

The CairoFontOptions class>>

CairoFontFace::status

cairo_font_face_status

(PECL cairo >= 0.1.0)

CairoFontFace::status -- cairo_font_face_statusCheck for CairoFontFace errors

Beschreibung

Object oriented style (method):

public int CairoFontFace::status ( void )

Procedural style:

int cairo_font_face_status ( CairoFontFace $fontface )

Checks whether an error has previously occurred for this font face

Parameter-Liste

fontface

A valid CairoFontFace object

Rückgabewerte

CAIRO_STATUS_SUCCESS or another error such as CAIRO_STATUS_NO_MEMORY.

Beispiele

Beispiel #1 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

?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

int(0)

Beispiel #2 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

?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

int(0)

Siehe auch

  • Classname::Method()


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)