ID: 50194 Updated by: ahar...@php.net Reported By: stanislav at ww9 dot ru Status: Assigned Bug Type: GD related Operating System: Windows PHP Version: 5.2.11 Assigned To: pajoye New Comment:
Bug #50958 is a dupe of this, and has a couple more exemplars that might be useful for isolating the problem. Previous Comments: ------------------------------------------------------------------------ [2009-11-20 14:19:05] stanislav at ww9 dot ru Sorry, imagesavealpha has no effect on a result ------------------------------------------------------------------------ [2009-11-20 14:15:11] stanislav at ww9 dot ru I don't think it's a font problem. It draws text well when -the background tranparency is swiched off -alphablending is set to true -savealpha is set to false Here is the modifed code: <?php header('Content-type: image/png'); $im = imagecreatetruecolor(400, 100); $background = imagecolorallocatealpha($im, 60, 60, 60, 0)// no tranparency; $black = imagecolorallocate($im, 0, 0, 0); //imagealphablending($im, false); imagefilledrectangle($im, 0, 0, 399, 99, $background); $text = 'Tesing ... '; $font = './zeferinotwo.ttf'; imagettftext($im, 40, 0, 10, 40, $black, $font, $text); //imagesavealpha($im, true); imagepng($im); imagedestroy($im); ?> ------------------------------------------------------------------------ [2009-11-20 11:42:17] f...@php.net It works with 5.2.6-1+lenny3 from Debian. Broken as well in 5.3.1 (php.net) on Debian lenny ------------------------------------------------------------------------ [2009-11-20 11:35:32] paj...@php.net I have to try them :) ------------------------------------------------------------------------ [2009-11-20 11:34:02] f...@php.net Reproduced with PHP5.3.1RC3 on Ubuntu LTS I tend to blame the font. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/50194 -- Edit this bug report at http://bugs.php.net/?id=50194&edit=1