corrected doc bug #10586 (pdf_stringwidth proto and definition were incorrect

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@48086 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel Beckham 2001-05-21 19:28:58 +00:00
parent bce0160d5e
commit 7378e7fcf1

View file

@ -2738,13 +2738,29 @@ pdf_close_image($pdf, $pim);
<funcdef>double <function>pdf_stringwidth</function></funcdef>
<paramdef>int <parameter>pdf object</parameter></paramdef>
<paramdef>string <parameter>text</parameter></paramdef>
<paramdef>string <parameter><optional>text</optional></parameter></paramdef>
<paramdef>string <parameter><optional>text</optional></parameter></paramdef>
<paramdef>int <parameter><optional>font</optional></parameter></paramdef>
<paramdef>double <parameter><optional>size</optional></parameter></paramdef>
</funcprototype>
</funcsynopsis>
<para>
Return the width of text in an arbitrary font.
Returns the width of <parameter>text</parameter> using the last
font set by <function>pdf_setfont</function>. If the optional
parameters <parameter>font</parameter> and
<parameter>size</parameter> are specified, the width will be
calculated using that font and size instead. Please note that
<parameter>font</parameter> is a font handle returned by
<function>pdf_findfont</function>.
</para>
<note>
<para>
Both the <parameter>font</parameter> and <parameter>size</parameter>
parameters must used together.
</para>
</note>
<para>
See Also: <function>pdf_setfont</function> and
<function>pdf_findfont</function>.
</para>
</refsect1>
</refentry>