Cairo::availableFonts

(PECL cairo >= 0.1.0)
Retrieves the availables font types
public static array Cairo::availableFonts ( void )

Object oriented style:

Procedural style:

array cairo_available_fonts ( void )

Returns an array with the available font backends

Returns:

A list-type array with all available font backends.

Examples:
Object oriented style
<?php

/* Object Oriented Style */
var_dump(Cairo::availableFonts());

?>

The above example will output something similar to:

array(2) {
  [0]=>
  string(5) "WIN32"
  [1]=>
  string(4) "USER"
}
Procedural style
<?php

/* Procedural style */
var_dump(cairo_available_fonts());

?>

The above example will output something similar to:

array(2) {
  [0]=>
  string(5) "WIN32"
  [1]=>
  string(4) "USER"
}
See also:

Cairo::availableSurfaces() -

doc_php
2016-02-24 15:58:48
Comments
Leave a Comment

Please login to continue.