PHP Doku:: Retrieves the font face type - cairofontface.gettype.html

Verlauf / Chronik / History: (3) anzeigen

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

Ein Service von Reinhard Neidl - Webprogrammierung.

The CairoFontFace class

<<CairoFontFace::__construct

CairoFontFace::status -- cairo_font_face_status>>

CairoFontFace::getType

(PECL cairo >= 0.1.0)

CairoFontFace::getTypeRetrieves the font face type

Beschreibung

public int CairoFontFace::getType ( void )

This function returns the type of the backend used to create a font face. See CairoFontType class constants for available types.

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

A font type that can be any one defined in CairoFontType

Beispiele

Beispiel #1 CairoFontFace::getType() example

<?php

// Creates the font face
$fontface = new CairoToyFontFace('sans-serif');

// Get the font face type
var_dump($fontface->getType());

?>

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",...)