#48155 [Fbk->Opn]: imagettftext and imagefttext do not accurately position text horizontally
| From: | tom at streamsense dot net | Date: | Tue, 05 May 2009 19:36:16 +0000 |
| Subject: | #48155 [Fbk->Opn]: imagettftext and imagefttext do not accurately position text horizontally | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-136809@lists.php.net to get a copy of this message | ||
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.2.9
+PHP Version: 5.3.0RC2-dev
New Comment:
Confirmed reproducable on PHP Version 5.3.0RC2-dev
GD Version bundled (2.0.34 compatible)
FreeType Version 2.3.9
Previous Comments:
------------------------------------------------------------------------
[2009-05-05 19:28:10] pajoye@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