#48801 [Opn]: Problem with imagettfbbox
| From: | dgdd at wanadoo dot fr | Date: | Thu, 23 Jul 2009 12:22:12 +0000 |
| Subject: | #48801 [Opn]: Problem with imagettfbbox | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-140124@lists.php.net to get a copy of this message | ||
ID: 48801
User updated by: dgdd at wanadoo dot fr
Reported By: dgdd at wanadoo dot fr
Status: Open
Bug Type: GD related
Operating System: Windows XP
PHP Version: 5.3.0
New Comment:
I'm tested width : php 5.2.11
This snapshot was automatically generated on
Thu, 23 Jul 2009 11:45:25 +0100
Version: 5.2.11-dev
Branch: HEAD
Build: Release_TS
The bug is not fixed
Best regards
Previous Comments:
------------------------------------------------------------------------
[2009-07-23 11:16:14] john dot peterson3 at hotmail dot com
Thanks for noticing. Please try to fix it if you can. I can't determine
how far above or below the baseline the font is extending now. Could
there be a fix in 5.2.11?
Best Regards
John
------------------------------------------------------------------------
[2009-07-09 09:47:28] info at classic-emaille dot de
Hello,
I have the same problem after upgrading from PHP version 5.2.9 to
version 5.2.10.
imagettfbbox delivers in version 5.2.10 different values then in
version
5.2.9.
------------------------------------------------------------------------
[2009-07-05 06:12:54] dgdd at wanadoo dot fr
Description:
------------
delivered value problem
Reproduce code:
---------------
$dimensions_texte = imagettfbbox( 50, 0, "SCRIPTIN.TTF", "test");
echo $dimensions_texte[0]." * ";
echo $dimensions_texte[1]." * ";
echo $dimensions_texte[2]." * ";
echo $dimensions_texte[3]." * ";
echo $dimensions_texte[4]." * ";
echo $dimensions_texte[5]." * ";
echo $dimensions_texte[6]." * ";
echo $dimensions_texte[7]."<br>";
Expected result:
----------------
Width PHP 5.2.8 :
-1 * 36 * 98 * 36 * 98 * -61 * -1 * -61 <<<< PHP 5.2.8
Actual result:
--------------
Width PHP 5.3.0
-1 * -1 * 104 * -1 * 104 * -100 * -1 * -100 <<<< PHP 5.3.0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48801&edit=1