ID:               48155
 User updated by:  tom at streamsense dot net
 Reported By:      tom at streamsense dot net
-Status:           Feedback
+Status:           Open
 Bug Type:         GD related
 Operating System: Windows Server 2008
 PHP Version:      5.3.0RC2-dev
 New Comment:

The font is arial black, included with any windows install, but this is
totally reproducable with any font (or at least all i've tried). I've
tried tahoma, arial, arial black, times new roman.


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

[2009-05-05 19:39:03] paj...@php.net

Please post a link to the font you use.

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

[2009-05-05 19:36:15] tom at streamsense dot net

Confirmed reproducable on PHP Version 5.3.0RC2-dev

GD Version      bundled (2.0.34 compatible) 
FreeType Version        2.3.9

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

[2009-05-05 19:28:10] paj...@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/



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

[2009-05-05 18:22:49] tom at streamsense dot net

Description:
------------
Whilst PHP can very accurately get the bounding box of TTF text, when
drawing it does not position the text accurately on the X axis.

The error margin varies depending on the glyphs being drawn.

System  Windows NT S15289149 6.0 build 6001 (Windows Server 2008)
PHP Version 5.2.9-2
Build Date      Apr 9 2009 08:22:37 
GD Version      bundled (2.0.34 compatible) 
FreeType Version        2.1.9 

Reproduce code:
---------------
http://www.pastebin.ca/1413488

Expected result:
----------------
All text should be contained within the red bounding box.

Actual result:
--------------
http://bayimg.com/image/dapmiaabh.jpg

Text is not contained with the indicated red bounding boxes.


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


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

Reply via email to