#48155 [Opn->Fbk]: imagettftext and imagefttext do not accurately position text horizontally
| From: | pajoye@php.net | Date: | Tue, 05 May 2009 19:28:11 +0000 |
| Subject: | #48155 [Opn->Fbk]: imagettftext and imagefttext do not accurately position text horizontally | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-136808@lists.php.net to get a copy of this message | ||
ID: 48155
Updated by: pajoye@php.net
Reported By: tom at streamsense dot net
-Status: Open
+Status: Feedback
Bug Type: GD related
Operating System: Windows Server 2008
PHP Version: 5.2.9
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[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