php man page for cairo_set_font_face

Query: cairo_set_font_face

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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)
Related Man Pages
cairo_set_font_face(3) - php
cairocontext(3) - php
cairo_append_path(3) - php
cairo_clip_preserve(3) - php
cairo_close_path(3) - php
Similar Topics in the Unix Linux Community
Object Detection in Video Streams Using Staggered Sampling
Bbcode css