From:             tom at streamsense dot net
Operating system: Windows Server 2008
PHP version:      5.2.9
PHP Bug Type:     GD related
Bug description:  imagettftext and imagefttext do not accurately position text 
horizontally

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 bug report at http://bugs.php.net/?id=48155&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=48155&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=48155&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=48155&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=48155&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48155&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=48155&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=48155&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=48155&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=48155&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=48155&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=48155&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=48155&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=48155&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=48155&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48155&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48155&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=48155&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=48155&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=48155&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=48155&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=48155&r=mysqlcfg

Reply via email to