note 55827 added to function.imagettfbbox
| From: | c.scheffers | Date: | Sun, 14 Aug 2005 20:15:20 +0000 |
| Subject: | note 55827 added to function.imagettfbbox | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-93650@lists.php.net to get a copy of this message | ||
I would like to post a small modification to the imageprintWordWrapped() posted below also.
The following code causes each line to start with a space, which results in the incorrect alignment
of text:
$line .= ' '.$words[0]; // add the word to the current sentence
A (quick) fix for this problem:
$line .= ($line != '' ? ' ' : '').$words[0]; // add the word to the
current sentence
----
Manual Page -- http://www.php.net/manual/en/function.imagettfbbox.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55827
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55827&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55827&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55827&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55827&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55827&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55827&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55827&report=yes
Search -- http://master.php.net/manage/user-notes.php