From: sks76543210 at gmail dot com Operating system: CentOS 5 PHP version: 5.3SVN-2010-02-07 (snap) PHP Bug Type: GD related Bug description: imagettftext() Kerning errors
Description: ------------ Text created with imagettftext() has kerning (letter-spacing) errors Reproduce code: --------------- Please see http://www.yessum.org/gdbug/ for example images, fonts used, and sample php script. Entire test case is tar'ed at http://www.yessum.org/gdbug.tar.gz In PHP 5.1.6, with GD version "bundled (2.0.28 compatible)", the test images did not have any kerning errors. In the php5.3-201002071530 snapshot with GD version "bundled (2.0.34 compatible)", the text on the images is not displayed properly, especially evident in http://www.yessum.org/gdbug/scriptina-php-5.3.3-dev-gd-2.0.34.png but there are less noticeable errors in http://www.yessum.org/gdbug/times-new-roman-php-5.3.3-dev-gd-2.0.34.png as well. Expected result: ---------------- imagettftext() should continue displaying text as it did in PHP 5.1.6 with GD 2.0.28 Actual result: -------------- imagettftext() has kerning errors making the text completely illegible in some cases -- Edit bug report at http://bugs.php.net/?id=50958&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50958&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50958&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50958&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50958&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50958&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50958&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50958&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50958&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50958&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50958&r=support Expected behavior: http://bugs.php.net/fix.php?id=50958&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50958&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50958&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50958&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50958&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50958&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50958&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50958&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50958&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50958&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50958&r=mysqlcfg