#29260 [Opn->Bgs]: imagettfbbox relative coordinates changed
| From: | iliaa@php.net | Date: | Tue, 20 Jul 2004 00:46:21 +0000 |
| Subject: | #29260 [Opn->Bgs]: imagettfbbox relative coordinates changed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-62693@lists.php.net to get a copy of this message | ||
ID: 29260
Updated by: iliaa@php.net
Reported By: operator at infomaniak dot ch
-Status: Open
+Status: Bogus
Bug Type: GD related
Operating System: linux 2.4.x
PHP Version: 4.3.8
New Comment:
There were some fixes to the function that resolved a
problem in the older code that sometime would get incorrect
co-ordinates.
Previous Comments:
------------------------------------------------------------------------
[2004-07-19 16:27:21] operator at infomaniak dot ch
Description:
------------
The reference coordinates values changed from 4.3.6 to
4.3.8 on imagettfbbox() ?
( gd 2.0.26 )
Reproduce code:
---------------
<pre>
<?php
$font_dir = $_SERVER["DOCUMENT_ROOT"]."/fonts";
$box = imagettfbbox(18,0,$font_dir."/ariblk.ttf","test");
var_dump($box);
?>
</pre>
Expected result:
----------------
array(8) {
[0]=>
int(0)
[1]=>
int(-1)
[2]=>
int(52)
[3]=>
int(-1)
[4]=>
int(52)
[5]=>
int(-19)
[6]=>
int(0)
[7]=>
int(-19)
}
Actual result:
--------------
array(8) {
[0]=>
int(0)
[1]=>
int(-20)
[2]=>
int(53)
[3]=>
int(-20)
[4]=>
int(53)
[5]=>
int(0)
[6]=>
int(0)
[7]=>
int(0)
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29260&edit=1