mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Added function description, return value description, OO-style example and See-Also's.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@296246 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
33d510024e
commit
38965efae6
1 changed files with 19 additions and 12 deletions
|
@ -22,10 +22,8 @@
|
|||
<methodparam><type>CairoFontFace</type><parameter>fontface</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Description here.
|
||||
Sets the font-face for a given context.
|
||||
</para>
|
||||
|
||||
&warn.undocumented.func;
|
||||
|
||||
</refsect1>
|
||||
|
||||
|
@ -56,7 +54,7 @@
|
|||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Description...
|
||||
No value is returned
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
@ -68,16 +66,24 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?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');
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs.similar;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
...
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
|
@ -104,7 +110,8 @@
|
|||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><methodname>Classname::Method</methodname></member>
|
||||
<member><methodname>CairoContext::setFontSize</methodname></member>
|
||||
<member><methodname>CairoContext::showText</methodname></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
Loading…
Reference in a new issue