#24665 [Opn->Fbk]: Problems with imagettftext()/imagettfbbox() in PHP 4.3.2+
| From: | sniper@php.net | Date: | Wed, 16 Jul 2003 04:04:37 +0000 |
| Subject: | #24665 [Opn->Fbk]: Problems with imagettftext()/imagettfbbox() in PHP 4.3.2+ | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-44086@lists.php.net to get a copy of this message | ||
ID: 24665
Updated by: sniper@php.net
Reported By: daeken_9999 at yahoo dot com
-Status: Open
+Status: Feedback
Bug Type: GD related
Operating System: Debian GNU/Linux
PHP Version: 4.3.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
And if that doesn't compile out-of-the-box (without any hacks by you)
then please tell us WHAt does not work.
And it would help a lot if we knew what your configure line is like.
Previous Comments:
------------------------------------------------------------------------
[2003-07-15 09:40:08] daeken_9999 at yahoo dot com
Description:
------------
When using PHP 4.3.2's internal GD library with the with or without the
FreeType/FreeType2 functions, imagettftext() and imagettfbbox() are not
compiled into PHP. When I forced it to be compiled into PHP (by
setting the define in gd.c), the functions both operated very
strangely, returning coords in the millions, no matter what parameters
were given to it.
Reproduce code:
---------------
<?php
$arr = imagettfbbox(20, 0, $font, $string);
var_dump($arr);
?>
Expected result:
----------------
Proper coordinates for the bounding box.
Actual result:
--------------
array(8) {
[0]=>
int(-1073758404)
[1]=>
int(1076848078)
[2]=>
int(1948291952)
[3]=>
int(1930279504)
[4]=>
int(-1073758404)
[5]=>
int(1077268252)
[6]=>
int(135248404)
[7]=>
int(135267020)
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24665&edit=1