ID: 42735 Updated by: [EMAIL PROTECTED] Reported By: ses at aviaweb dot com -Status: Open +Status: Assigned Bug Type: GD related Operating System: Linux (centos 4) PHP Version: 5.2.4 -Assigned To: +Assigned To: pajoye
Previous Comments: ------------------------------------------------------------------------ [2007-09-22 16:42:30] ses at aviaweb dot com Description: ------------ This does not appear to work in 5.2.4. The gd_info() functions reports it's compatible with gd 2.0.34 - according to the boutelle site this was fixed in 2.0.33 http://www.boutell.com/gd/manual2.0.33.html (search on umlaute). This *does* work with the external GD library supplied with the OS distribution. The external was using php5.2.3 without built-in gd support (loosing 8 gd functions in the bargin - ouch). I am testing the following to test: <?php header("Content-type: image/png"); $im = imagecreatetruecolor(400, 30); $white = imagecolorallocate($im, 255, 255, 255); $black = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 399, 29, $white); $text = 'Umlaute: Ã?öÃO...'; $font = './arial.ttf'; imagettftext($im, 20, 0, 10, 20, $black, $font, $text); imagepng($im); imagedestroy($im); ?> I copied the arial.ttf from my PC. Thanks, -Stephanie Reproduce code: --------------- <?php header("Content-type: image/png"); $im = imagecreatetruecolor(400, 30); $white = imagecolorallocate($im, 255, 255, 255); $black = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 399, 29, $white); $text = 'Umlaute: Ã?öÃO...'; $font = './arial.ttf'; imagettftext($im, 20, 0, 10, 20, $black, $font, $text); imagepng($im); imagedestroy($im); ?> Expected result: ---------------- I expect to see characters with atleast one that has an umlaute (double dot about the "o" character). Actual result: -------------- group of character "boxes" like usually seen when characters entered do not have characters defined in the font being used. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42735&edit=1
