From 439e909346904563d17f9c980035a3e3ae7b61cc Mon Sep 17 00:00:00 2001 From: Mark Skilbeck Date: Fri, 24 Sep 2010 17:46:22 +0000 Subject: [PATCH] Adding Cairo docs git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@303752 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/cairo/cairocontext/textpath.xml | 62 +++++++++++++++-------- 1 file changed, 41 insertions(+), 21 deletions(-) diff --git a/reference/cairo/cairocontext/textpath.xml b/reference/cairo/cairocontext/textpath.xml index 57cdc9efae..ccced3c5f8 100644 --- a/reference/cairo/cairocontext/textpath.xml +++ b/reference/cairo/cairocontext/textpath.xml @@ -7,28 +7,48 @@ cairo_text_path The textPath purpose - + &reftitle.description; - Object oriented style (method): - + &style.oop; + public voidCairoContext::textPath stringstring - - Procedural style: - + + &style.procedural; + voidcairo_text_path CairoContextcontext stringtext - Description here. + Adds closed paths for text to the current path. The generated path, if filled, + achieves an effect similar to that of CairoContext::showText. + + + Text conversion and positioning is done similar to + CairoContext::showText. + + + Like CairoContext::showText, + after this call the current point is moved to the origin of where + the next glyph would be placed in this same progression. + That is, the current point will be at the origin of the final + glyph offset by its advance values. This allows for chaining multiple + calls to to CairoContext::showText + without having to set current point in between. + + + Note: The CairoContext::textPath function + call is part of what the cairo designers call the "toy" text API. + It is convenient for short demos and simple programs, + but it is not expected to be adequate for serious text-using applications. + See CairoContext::glyphPath for the "real" + text path API in cairo. - &warn.undocumented.func; - - + &reftitle.parameters; @@ -37,7 +57,7 @@ context - Description... + A CairoContext object @@ -60,14 +80,14 @@ - + &reftitle.returnvalues; Description... - + &reftitle.examples; @@ -79,9 +99,9 @@ /* ... */ ?> ]]> - - &example.outputs.similar; - + + &example.outputs.similar; + @@ -97,9 +117,9 @@ /* ... */ ?> ]]> - - &example.outputs.similar; - + + &example.outputs.similar; + @@ -107,7 +127,7 @@ - + &reftitle.seealso; @@ -116,7 +136,7 @@ - +