Cairo::availableFonts
cairo_available_fonts
(PECL cairo >= 0.1.0)
Cairo::availableFonts -- cairo_available_fonts — Retrieves the availables font types
Beschreibung
Objektorientierter Stil:
public static array Cairo::availableFonts
( void
)
Prozeduraler Stil:
array cairo_available_fonts
( void
)
Returns an array with the available font backends
Parameter-Liste
Diese Funktion hat keine Parameter.
Rückgabewerte
A list-type array with all available font backends.
Beispiele
Beispiel #1 Objektorientierter Stil
<?php
/* Object Oriented Style */
var_dump(Cairo::availableFonts());
?>
Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
array(2) {
[0]=>
string(5) "WIN32"
[1]=>
string(4) "USER"
}
Beispiel #2 Prozeduraler Stil
<?php
/* Procedural style */
var_dump(cairo_available_fonts());
?>
Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
array(2) {
[0]=>
string(5) "WIN32"
[1]=>
string(4) "USER"
}