(PECL cairo >= 0.1.0)
Cairo::availableFonts -- cairo_available_fonts — Retrieves the availables font types
Styl obiektowy:
Styl proceduralny:
Returns an array with the available font backends
Ta funkcja nie posiada parametrów.
A list-type array with all available font backends.
Przykład #1 Styl obiektowy
<?php
/* Object Oriented Style */
var_dump(Cairo::availableFonts());
?>
Powyższy przykład wyświetli coś podobnego do:
array(2) {
[0]=>
string(5) "WIN32"
[1]=>
string(4) "USER"
}
Przykład #2 Styl proceduralny
<?php
/* Procedural style */
var_dump(cairo_available_fonts());
?>
Powyższy przykład wyświetli coś podobnego do:
array(2) {
[0]=>
string(5) "WIN32"
[1]=>
string(4) "USER"
}