Edit report at http://bugs.php.net/bug.php?id=51902&edit=1
ID: 51902 Updated by: ahar...@php.net Reported by: tgabor72 at freemail dot hu Summary: imagettftext() - wrong character aligning in the textbox -Status: Open +Status: Duplicate Type: Bug Package: GD related Operating System: WinXP - IIS -fastcgi PHP Version: 5.3.2 New Comment: Bug #51263 deals with this. Previous Comments: ------------------------------------------------------------------------ [2010-05-24 23:09:56] tgabor72 at freemail dot hu Description: ------------ imagettftext($image,$FontSize,$RotationAngle=90,$x,$y,$Color,$font,$value); This function worked well in the previous version of PHP (5.3.1), after updating PHP package, the next bug can be realized: When you work with image processing functions and using imagettftext() function to write some text to the image area, and if you use for example 90 degrees rotating for the text (that is the 3rd parameter of this funcion), a wrong text align is visible on the image, because all characters are fitted to the upper edge of the textbox. It is a new problem, because there are not available any kind of text aligning functions under image processing extension... To corrigate this bug, strongly advised to use the previous version of PHP (v5.3.1) Test script: --------------- $ima...@imagecreate(500,500); $background_color=imagecolorallocate($image,40,40,40); $font="./arial.ttf"; $Color=imagecolorallocate($image,255,0,255); imagettftext($image,12,90,10,100,$Color,$font,"Something, Text."); imagepng($image); imagedestroy($image); Expected result: ---------------- This function worked well in the previous version of PHP (5.3.1), after updating PHP package, the next bug can be realized: When you work with image processing functions and using imagettftext() function to write some text to the image area, and if you use for example 90 degrees rotating for the text (that is the 3rd parameter of this funcion), a wrong text align is visible on the image, because all characters are fitted to the upper edge of the textbox. It is a new problem, because there are not available any kind of text aligning functions under image processing extension... To corrigate this bug, strongly advised to use the previous version of PHP (v5.3.1) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51902&edit=1