ID: 30652 User updated by: info at paulinternet dot nl -Summary: imagettftext different output hosts Reported By: info at paulinternet dot nl Status: Open Bug Type: GD related -Operating System: Windows XP & FreeBSD +Operating System: Windows & Linux PHP Version: 4.3.9 New Comment:
Description: ------------ Imagettftext produces different images on Windows and Linux. I used the Verdana font, but this happends on more(maybe all) fonts. GD version: bundled (2.0.28 compatible) Windows output: http://www.paulinternet.nl/php.net/Windows.png Linux output: http://www.paulinternet.nl/php.net/Linux.png Verdana font: http://www.paulinternet.nl/php.net/Verdana.ttf Reproduce code: --------------- header("Content-type: image/png"); $Image = imagecreate(200, 24); imagecolorallocate($Image, 0, 0, 0); $Kleur = imagecolorallocate($Image, 255, 255, 255); imagettftext($Image, 16, 0, 2, 18, $Kleur, "Pagina's/Tekst/Verdana.ttf", "I have a problem"); imagepng($Image); imagedestroy($Image); Previous Comments: ------------------------------------------------------------------------ [2004-11-01 16:00:00] info at paulinternet dot nl Description: ------------ I can run this script on the localhost and on the server of my hosting provider. The image on the localhost is a bit difference from the image on the server. Is this a bug? If not, how can I get on my computer the same output as on the server? My phpinfo: http://www.paulinternet.nl/php.net/Localhost.htm Server phpinfo: http://www.paulinternet.nl/php.net/Server.htm My output: http://www.paulinternet.nl/php.net/Localhost.png Server output: http://www.paulinternet.nl/php.net/Server.png Verdana font: http://www.paulinternet.nl/php.net/Verdana.ttf Reproduce code: --------------- header("Content-type: image/png"); $Image = imagecreate(200, 24); imagecolorallocate($Image, 0, 0, 0); $Kleur = imagecolorallocate($Image, 255, 255, 255); imagettftext($Image, 16, 0, 2, 18, $Kleur, "Pagina's/Tekst/Verdana.ttf", "I have a problem"); imagepng($Image); imagedestroy($Image); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30652&edit=1