Ask a Question related to PHP Bugs, Design and Development.
-
pajoye@php.net #1
#37730 [NoF]: ImageTTFText & ImageTTFBBox don't give accurate rectangle with angle
ID: 37730
Updated by: [email]pajoye@php.net[/email]
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):
[url]http://hopka.net/imagettfbbox.php5[/url]
------------------------------------------------------------------------
[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]pajoye@php.net[/email]
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]pajoye@php.net[/email]
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
[url]http://bugs.php.net/37730[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=37730&edit=1[/url]
pajoye@php.net Guest
-
#37730 [Com]: ImageTTFText & ImageTTFBBox don't give accurate rectangle with angle
ID: 37730 Comment by: hopka at hopka dot net Reported By: marc dot lazzaro at st dot com Status: No Feedback... -
#37730 [NoF->Fbk]: ImageTTFText & ImageTTFBBox don't give accurate rectangle with angle
ID: 37730 Updated by: pajoye@php.net Reported By: marc dot lazzaro at st dot com -Status: No Feedback +Status:... -
#37730 [Asn->Fbk]: ImageTTFText & ImageTTFBBox don't give accurate rectangle with angle
ID: 37730 Updated by: pajoye@php.net Reported By: marc dot lazzaro at st dot com -Status: Assigned +Status: ... -
#24665 [Opn->Fbk]: Problems with imagettftext()/imagettfbbox() in PHP 4.3.2+
ID: 24665 Updated by: sniper@php.net Reported By: daeken_9999 at yahoo dot com -Status: Open +Status: ... -
#24665 [NEW]: Problems with imagettftext()/imagettfbbox() in PHP 4.3.2+
From: daeken_9999 at yahoo dot com Operating system: Debian GNU/Linux PHP version: 4.3.2 PHP Bug Type: GD related Bug...



Reply With Quote

