CAIRO_FONT_FACE_STATUS(3) 1 CAIRO_FONT_FACE_STATUS(3)CairoFontFace::status - Check for CairoFontFace errors
Object oriented style (method):
SYNOPSIS
public int CairoFontFace::status (void )
DESCRIPTION
Procedural style:
int cairo_font_face_status (CairoFontFace $fontface)
Checks whether an error has previously occurred for this font face
PARAMETERS
o $fontface
- A valid CairoFontFace object
RETURN VALUES
CAIRO_STATUS_SUCCESS or another error such as CAIRO_STATUS_NO_MEMORY.
EXAMPLES
Example #1
Object oriented style
<?php
// Creates the font face
$fontface = new CairoToyFontFace('sans-serif');
// Get the font face status
var_dump($fontface->status()); // should be the value of CAIRO_STATUS_SUCCESS
?>
The above example will output something similar to:
int(0)
Example #2
Procedural style
<?php
// Creates the font face
$fontface = new CairoToyFontFace('sans-serif');
// Get the font face status
var_dump(cairo_font_face_status($fontface)); // should be the value of CAIRO_STATUS_SUCCESS
?>
The above example will output something similar to:
int(0)SEE ALSO
Classname::Method.
PHP Documentation Group CAIRO_FONT_FACE_STATUS(3)
Check Out this Related Man Page
CAIRO_SET_FONT_FACE(3) 1 CAIRO_SET_FONT_FACE(3)CairoContext::setFontFace - The setFontFace purpose
Object oriented style (method):
SYNOPSIS
public void CairoContext::setFontFace (CairoFontFace $fontface)
DESCRIPTION
Procedural style:
void cairo_set_font_face (CairoContext $context, CairoFontFace $fontface)
Sets the font-face for a given context.
PARAMETERS
o $context
- A CairoContext object to change the font-face for.
o $fontface
- A CairoFontFace object
RETURN VALUES
No value is returned
EXAMPLES
Example #1
Object oriented style
<?php
// New surface with white background
$s = new CairoImageSurface(CairoFormat::ARGB32, 300, 100);
$c = new CairoContext($s);
$c->setSourceRgb(1, 1, 1);
$c->paint();
// Draw some text
$c->setSourceRgb(0, 0, 0);
$c->moveTo(10, 60);
// Create a new font face
$f = new CairoToyFontFace("sans-serif", CairoFontSlant::NORMAL, CairoFontWeight::NORMAL);
$c->setFontFace($f);
$c->setFontSize(30);
$c->showText('Hello, World!');
$s->writeToPng(dirname(__FILE__) . '/setFontFace.png');
?>
Example #2
Procedural style
<?php
/* ... */
?>
SEE ALSO
CairoContext::setFontSize, CairoContext::showText.
PHP Documentation Group CAIRO_SET_FONT_FACE(3)
I was wondering if anyone knows of any dashboard style tools for AIX. One of my many responsibilities is to report the status of the boxes and whether certain things are "up" and running each and every day. Nonetheless, this is a MAJOR pain as I have to logon to each box, pull up URLs through my... (3 Replies)