ID:               34951
 User updated by:  aweeks at lssu dot edu
 Reported By:      aweeks at lssu dot edu
-Status:           Feedback
+Status:           Closed
 Bug Type:         *Graphics related
 Operating System: Fedora Core 4 64-bit
 PHP Version:      5.0.5
 New Comment:

I just confirmed that this is resolved in the latest cvs of 5.1 RC4. 
Thanks for your help.


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

[2005-10-21 20:59:27] [EMAIL PROTECTED]

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



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

[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

Reply via email to