From 7378e7fcf183ccce340d04921d877b4662b8283c Mon Sep 17 00:00:00 2001 From: Daniel Beckham Date: Mon, 21 May 2001 19:28:58 +0000 Subject: [PATCH] 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 --- functions/pdf.xml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/functions/pdf.xml b/functions/pdf.xml index 34ba8a79ac..95677054ac 100644 --- a/functions/pdf.xml +++ b/functions/pdf.xml @@ -2738,13 +2738,29 @@ pdf_close_image($pdf, $pim); double pdf_stringwidth int pdf object string text - string text - string text + int font + double size - Return the width of text in an arbitrary font. + Returns the width of text using the last + font set by pdf_setfont. If the optional + parameters font and + size are specified, the width will be + calculated using that font and size instead. Please note that + font is a font handle returned by + pdf_findfont. + + + Both the font and size + parameters must used together. + + + + See Also: pdf_setfont and + pdf_findfont. +