#34951 [Opn->Fbk]: X co-ordinate value always seems to be 0 in imagettftext()
| From: | tony2001@php.net | Date: | Fri, 21 Oct 2005 18:59:27 +0000 |
| Subject: | #34951 [Opn->Fbk]: X co-ordinate value always seems to be 0 in imagettftext() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-86895@lists.php.net to get a copy of this message | ||
ID: 34951
Updated by: tony2001@php.net
Reported By: aweeks at lssu dot edu
-Status: Open
+Status: Feedback
Bug Type: *Graphics related
Operating System: Fedora Core 4 64-bit
PHP Version: 5.0.5
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-10-21 20:56:52] aweeks at lssu dot edu
Description:
------------
In previous versions of PHP (4.X) the imagettftext() function works
appropriately with coordinates. A php 5.0.5 install with the same
configuration options seems to make the X coordinate (4th parameter of
the function) always 0. We have tried several ways to get around it,
but the value of x never seems to change: 0.
Reproduce code:
---------------
The code is a standard call to imagettftext. We have several code
snippets, all of which place the text at x=0:
imagettftext($im, 13, 0, 35, 20, $black,
"/home/protected/fonts/$font",
$text);
Expected result:
----------------
We expect to see the font text placed 35 pixels in from the left.
Actual result:
--------------
Instead of being 35 pixels in from the left edge of the image, it is
flush against the left side of the image. We have tried this with
several image programs, and with various values in place of the x
parameter.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34951&edit=1