From: Operating system: PHP version: 5.3.2 Package: GD related Bug Type: Bug Bug description:imagettftext and rotated text uses wrong baseline (regression)
Description: ------------ imagettftext and rotated text by e.g. 90 degrees aligns text on top of characters instead of baseline. The regression was introduced with commit r293268 | tabe | 2010-01-08 13:18:52 | Bug #49600 (imageTTFText text shifted right) - fix difference of horizontal position between imagettftext() and imagettfbbox() Test script: --------------- <?php $img = imagecreatetruecolor(23, 100); $col = imagecolorallocate($img, 255, 255, 255); imagettftext($img, 8, 90, 10, 90, $col, "verdana.ttf", "foo bar qux"); imagepng($img, "img.png"); Expected result: ---------------- Normal text rotated by 90 degrees Actual result: -------------- Text rotated but aligned at top of characters instead of bottom -- Edit bug report at http://bugs.php.net/bug.php?id=51263&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51263&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51263&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51263&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51263&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51263&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51263&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51263&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51263&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51263&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51263&r=support Expected behavior: http://bugs.php.net/fix.php?id=51263&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51263&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51263&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51263&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51263&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51263&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51263&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51263&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51263&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51263&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51263&r=mysqlcfg