note 90720 modified in function.imagettfbbox by danbrown
| From: | danbrown@php.net | Date: | Wed, 06 May 2009 02:10:28 +0000 |
| Subject: | note 90720 modified in function.imagettfbbox by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154271@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:
<?php
// GET BOUNDS OF TEXT
$bounds = imagettfbbox($size*1.05, $angle-3, $font, $text);
?>
--was--
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);
http://php.net/manual/en/function.imagettfbbox.php