ID: 48155 Updated by: paj...@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.3.0RC2-dev
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