danbeck         Mon May 21 12:28:59 2001 EDT

  Modified files:              
    /phpdoc/en/functions        pdf.xml 
  Log:
  corrected doc bug #10586 (pdf_stringwidth proto and definition were incorrect
  
Index: phpdoc/en/functions/pdf.xml
diff -u phpdoc/en/functions/pdf.xml:1.51 phpdoc/en/functions/pdf.xml:1.52
--- phpdoc/en/functions/pdf.xml:1.51    Sun May 20 20:36:19 2001
+++ phpdoc/en/functions/pdf.xml Mon May 21 12:28:58 2001
@@ -2738,13 +2738,29 @@
       <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>
 


Reply via email to