note 65806 added to function.imagettfbbox
| From: | Nimja at osu1 dot php dot net | Date: | Mon, 08 May 2006 08:09:47 +0000 |
| Subject: | note 65806 added to function.imagettfbbox | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-110840@lists.php.net to get a copy of this message | ||
Warning:
james.logsdon's function has a few flaws in copying my own function. Though he did a great job
in making an overall nicer looking function it does have a few flaws.
His function does not allow for long words (longer then the width) linebreaks (harder then it looks)
and has a non-pixel perfect location.
The problem with the imagettfbbox function is that different letters give a different x/y top-left
coordinate. At least it looks that way for the eye. I 'solved' this by putting a space in
front of every line and then offset the text by the width of that space.
So, although some things of my function seem useless they do serve an important purpose.
----
Server IP: 194.109.193.119
Probable Submitter: 145.7.182.188 (proxied: 1.1 NUWNLISA001)
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.imagettfbbox.php
Edit -- http://master.php.net/note/edit/65806
Del: integrated -- http://master.php.net/note/delete/65806/integrated
Del: useless -- http://master.php.net/note/delete/65806/useless
Del: bad code -- http://master.php.net/note/delete/65806/bad+code
Del: spam -- http://master.php.net/note/delete/65806/spam
Del: non-english -- http://master.php.net/note/delete/65806/non-english
Del: in docs -- http://master.php.net/note/delete/65806/in+docs
Del: other reasons-- http://master.php.net/note/delete/65806
Reject -- http://master.php.net/note/reject/65806
Search -- http://master.php.net/manage/user-notes.php