From: letters at rmroppert dot de Operating system: NetBSD (different Versions) PHP version: 4.4.7 PHP Bug Type: GD related Bug description: special characters where not displayed as graphic
Description: ------------ want to put special characters (german umlauts) into an image. I use imagettftext() and the string "( ä ü ö xx Ä Ü Ö ß ) without blanks ( äüöxxÄÜÖß )". If i put an blank around the characters it works without blanks there squares. You see the result on: http://heisenberg.rmroppert.com/test/gd_php_out.pdf I tried the same on different machines (i386) under different NETBSD Versions (NetBSD 1.6, NetBSD 3.0.1, NetBSD 3.1) and different php versions. You may find the output of phpinfo of our testserver under: http://heisenberg.rmroppert.com/test/phpinfo1.pdf I think this is an problem of th built-in version og gd. Perhaps the image is correct if i use perl and gnuplot. Reproduce code: --------------- <?php $argtext=" ( ä ü ö xx Ä Ü Ö ß ) without blanks ( äüöÄÜÖß ) "; $font1="/usr/pkg/share/httpd/htdocs/testphp/test/Arial.ttf"; $im = imagecreate (1810, 100); $white = imagecolorallocate ($im, 255, 255, 255); $black = imagecolorallocate ($im, 0, 0, 0); imagefilledrectangle($im,0,0,609,99,$white); imagettftext ($im, 30, 0, 10, 40, $black, $font1, $argtxt); header ("Content-type: image/png"); imagejpeg($im); imagedestroy($im); ?> Expected result: ---------------- see links in Description -- Edit bug report at http://bugs.php.net/?id=41878&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41878&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41878&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41878&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41878&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41878&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41878&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41878&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41878&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41878&r=support Expected behavior: http://bugs.php.net/fix.php?id=41878&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41878&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41878&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41878&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41878&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41878&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41878&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41878&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41878&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41878&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41878&r=mysqlcfg
