Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cairo_available_fonts(3) [php man page]

CAIRO_AVAILABLE_FONTS(3)						 1						  CAIRO_AVAILABLE_FONTS(3)

Cairo::availableFonts - Retrieves the availables font types

       Object oriented style:

SYNOPSIS
publicstatic array Cairo::availableFonts (void ) DESCRIPTION
Procedural style: array cairo_available_fonts (void ) Returns an array with the available font backends PARAMETERS
This function has no parameters. RETURN VALUES
A list-type array with all available font backends. EXAMPLES
Example #1 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" } Example #2 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. PHP Documentation Group CAIRO_AVAILABLE_FONTS(3)

Check Out this Related Man Page

CAIRO_STATUS_TO_STRING(3)						 1						 CAIRO_STATUS_TO_STRING(3)

Cairo::statusToString - Retrieves the current status as string

       Object oriented style (method):

SYNOPSIS
publicstatic string Cairo::statusToString (int $status) DESCRIPTION
Procedural style: string cairo_status_to_string (int $status) Retrieves the current status as a readable string PARAMETERS
o $status - A valid status code given by cairo_status(3) or CairoContext::status RETURN VALUES
A string containing the current status of a CairoContext object EXAMPLES
Example #1 Object oriented style <?php $surface = new CairoImageSurface(CairoFormat::ARGB32, 50, 50); $context = new CairoContext($surface); var_dump(Cairo::statusToString($context->status())); ?> The above example will output something similar to: string(7) "success" Example #2 Procedural style <?php $surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 50, 50); $context = cairo_create($surface); var_dump(cairo_status_to_string(cairo_status($context))); ?> The above example will output something similar to: string(7) "success" SEE ALSO
CairoContext::status. PHP Documentation Group CAIRO_STATUS_TO_STRING(3)
Man Page