ID: 30652 Updated by: [EMAIL PROTECTED] Reported By: info at paulinternet dot nl -Status: Open +Status: Feedback Bug Type: GD related Operating System: Windows & Linux PHP Version: 4.3.9 -Assigned To: +Assigned To: pajoye New Comment:
Please provide valid URL. These urls (the images) do not work . --Pierre Previous Comments: ------------------------------------------------------------------------ [2004-11-04 19:52:30] info at paulinternet dot nl 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); ------------------------------------------------------------------------ [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