ID: 37730 Updated by: [EMAIL PROTECTED] Reported By: marc dot lazzaro at st dot com Status: No Feedback Bug Type: GD related Operating System: Win XP PHP Version: 5.1.4 Assigned To: pajoye New Comment:
"I made a little demonstration script (includes source + phpinfo): http://hopka.net/imagettfbbox.php5" Your script is wrong, you forgot that each position is relative to the origin of the text. Adding 100 to each of them is not correct. You have to rotate the offset. Previous Comments: ------------------------------------------------------------------------ [2007-02-27 15:10:59] hopka at hopka dot net I have the same problem with PHP 5.1.2 on Linux and 5.2.0 on Windows XP. I use imagepolygon to render the bounding box and with a rotation of 0 degrees (or 360, 720, etc) it fits around the text perfectly. As soon as I set a different angle, the bounding box is too large and at the wrong position. I made a little demonstration script (includes source + phpinfo): http://hopka.net/imagettfbbox.php5 ------------------------------------------------------------------------ [2007-01-23 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2007-01-15 12:45:28] [EMAIL PROTECTED] mail to pierre[at]libgd.org. ------------------------------------------------------------------------ [2006-06-08 06:57:29] marc dot lazzaro at st dot com My company policy forbides external access. If you could provide an email address I will send you the font file. But I have to say that the behavior remains the same whatever the font is. Also pls note that I got no errors when the @ is removed. ------------------------------------------------------------------------ [2006-06-07 16:44:58] [EMAIL PROTECTED] Please provide a link to the font you use. Don't use '@' to hide possible errors or notices. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/37730 -- Edit this bug report at http://bugs.php.net/?id=37730&edit=1