note 90720 added to function.imagettfbbox
| From: | Dario at osu1 dot php dot net | Date: | Wed, 06 May 2009 02:09:49 +0000 |
| Subject: | note 90720 added to function.imagettfbbox | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-154270@lists.php.net to get a copy of this message | ||
My solution to below-baseline characters is to simply apply a smaller angle and some padding when
calculating your boundaries, so the function thinks your text goes below baseline. For example:
// GET BOUNDS OF TEXT
$bounds = imagettfbbox($size*1.05, $angle-3, $font, $text);
----
Server IP: 64.71.164.2
Probable Submitter: 207.38.192.66
----
Manual Page -- http://www.php.net/manual/en/function.imagettfbbox.php
Edit -- https://master.php.net/note/edit/90720
Del: integrated -- https://master.php.net/note/delete/90720/integrated
Del: useless -- https://master.php.net/note/delete/90720/useless
Del: bad code -- https://master.php.net/note/delete/90720/bad+code
Del: spam -- https://master.php.net/note/delete/90720/spam
Del: non-english -- https://master.php.net/note/delete/90720/non-english
Del: in docs -- https://master.php.net/note/delete/90720/in+docs
Del: other reasons-- https://master.php.net/note/delete/90720
Reject -- https://master.php.net/note/reject/90720
Search -- https://master.php.net/manage/user-notes.php