ID:               21560
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         GD related
 Operating System: SusE 8.0
 PHP Version:      4.3.0
 New Comment:

Hi,

Can you provide a link with the test script and the font used ?

thank's

pierre


Previous Comments:
------------------------------------------------------------------------

[2003-02-07 10:03:02] [EMAIL PROTECTED]

The problem still exists in snapshot 200302071430

for the _exact_ same text string imagettfbbox() (and the _exact_ same
test script) returns the following (different) values depending on
version of PHP and GD

Snapshot 200302071430
Array ( [0] => -1 [1] => 14 [2] => -1 [3] => -226 [4] => -16 [5] =>
-226 [6] => -16 [7] => 14 )

PHP 4.3 (official release)
Array ( [0] => -1 [1] => 13 [2] => -1 [3] => -226 [4] => -16 [5] =>
-226 [6] => -16 [7] => 13 )

PHP 4.2.3 (with GD 2.01)
Array ( [0] => 3 [1] => -1 [2] => 3 [3] => -234 [4] => -16 [5] => -234
[6] => -16 [7] => -2 )

The only correct values are with GD 2.01 for both PHP 4.3 and snapshot
the bounding box is incorrect since it starts 14 (in snapshot) or 13
(in 4.3) pixels in into the text.

------------------------------------------------------------------------

[2003-01-27 22:39:59] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.



------------------------------------------------------------------------

[2003-01-09 20:11:36] [EMAIL PROTECTED]

Try non-bundled gd 2.0.9 and see if you get the same results as the
ones you've got with bundled GD library. I suspect that the behaviour
of GD between 2.0.1 and later versions had changed.

------------------------------------------------------------------------

[2003-01-09 18:59:27] [EMAIL PROTECTED]

For the given string string

"Demonstration of different\ntext of two lines"

(ArialTTF font  font 90 degrees rotation containing two lines
separated
by a single "\n".)

The imagettfbbox() returns different value arrays in PHP 4.2.1 using
GD
2.01 and
PHP 4.3.0 using builtin GD 2.08+

(You get the same difference for 4.2.1 by using GD 2.08 so the problem
must be in GD 2.08)

For GD 2.01  it returns (29,-1,29,-279,-20,-279,-20,-1)
For GD 2.08+ it returns (29,18,29,-277,-21,-277,-21,18)

------------------------------------------------------------------------

[2003-01-09 18:49:49] [EMAIL PROTECTED]

For the given string string 

"Demonstration of different\ntext of two lines"

(ArialTTF font  font 90 degrees rotation containing two lines separated
by a single "\n".)

The imagettfbbox() returns different value arrays in PHP 4.2.1 using GD
2.01 and
PHP 4.3.0 using builtin GD 2.08+

(You get the same difference for 4.2.1 by using GD 2.08 so the problem
must be in GD 2.08)

For GD 2.01  it returns (-29,18,29,-277,-21,-277,-21,18)
For GD 2.08+ it returns (-29,18,29,-279,-20,-279,-20,-1)



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=21560&edit=1

Reply via email to