CairoFontFace::getType

(PECL cairo >= 0.1.0)
Retrieves the font face type
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.

Returns:

A font type that can be any one defined in CairoFontType

Examples:
CairoFontFace::getType() example
1
2
3
4
5
6
7
8
9
<?php
 
// Creates the font face
$fontface new CairoToyFontFace('sans-serif');
 
// Get the font face type
var_dump($fontface->getType());
 
?>

The above example will output something similar to:

int(0)
doc_php
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.