From: 309165145 at qq dot com Operating system: xp/win7 /win8 PHP version: 5.4Git-2013-09-03 (Git) Package: GD related Bug Type: Bug Bug description:imagettftext("",,,,,,"Ù ÛÙ ÙÙÙ ")
Description: ------------ --- >From manual page: http://www.php.net/function.imagettftext#refsect1-function.imagettftext-description $text="Ù ÛÙ ÙÙÙ " --- Test script: --------------- <?php // Set the content-type //header('Content-Type: image/gif'); // Create the image $im = imagecreatetruecolor(400, 30); // Create some colors $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 399, 29, $white); // The text to draw $text = 'Ù ÛÙ ÙÙÙ '; // Replace path by your own font path $font = 'ALKATIP.ttf'; // Add some shadow to the text imagettftext($im, 20, 0, 11, 21, $grey, $font, $text); // Add the text imagettftext($im, 20, 0, 10, 20, $black, $font, $text); // Using imagepng() results in clearer text compared with imagejpeg() imagegif($im,"my.gif"); imagedestroy($im); ?> <img src='my.gif'> -- Edit bug report at https://bugs.php.net/bug.php?id=65610&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65610&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65610&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65610&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=65610&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=65610&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=65610&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=65610&r=needscript Try newer version: https://bugs.php.net/fix.php?id=65610&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=65610&r=support Expected behavior: https://bugs.php.net/fix.php?id=65610&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=65610&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=65610&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=65610&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65610&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=65610&r=dst IIS Stability: https://bugs.php.net/fix.php?id=65610&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=65610&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=65610&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=65610&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=65610&r=mysqlcfg