diff --git a/reference/cairo/cairocontext/setfontface.xml b/reference/cairo/cairocontext/setfontface.xml
index ff614d4823..f427301252 100644
--- a/reference/cairo/cairocontext/setfontface.xml
+++ b/reference/cairo/cairocontext/setfontface.xml
@@ -22,10 +22,8 @@
CairoFontFacefontface
- Description here.
+ Sets the font-face for a given context.
-
- &warn.undocumented.func;
@@ -56,7 +54,7 @@
&reftitle.returnvalues;
- Description...
+ No value is returned
@@ -68,16 +66,24 @@
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.outputs.similar;
-
-
-
@@ -104,7 +110,8 @@
&reftitle.seealso;
- Classname::Method
+ CairoContext::setFontSize
+ CairoContext::showText