(PECL cairo >= 0.1.0)
Cairo::availableFonts -- cairo_available_fonts — Retrieves the availables font types
Object oriented style:
Procedural style:
Returns an array with the available font backends
此函数没有参数。
A list-type array with all available font backends.
Example #1 Object oriented style
<?php
/* Object Oriented Style */
var_dump(Cairo::availableFonts());
?>
以上例程的输出类似于:
array(2) { [0]=> string(5) "WIN32" [1]=> string(4) "USER" }
Example #2 Procedural style
<?php
/* Procedural style */
var_dump(cairo_available_fonts());
?>
以上例程的输出类似于:
array(2) { [0]=> string(5) "WIN32" [1]=> string(4) "USER" }