Bug #65610 [Fbk->NoF]: imagettftext("",,,,,,"مەن كىم")

From: Date: Tue, 15 Oct 2013 11:54:49 +0000
Subject: Bug #65610 [Fbk->NoF]: imagettftext("",,,,,,"مەن كىم")
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182263@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65610&edit=1 ID: 65610 Updated by: php-bugs@lists.php.net Reported by: 309165145 at qq dot com Summary: imagettftext("",,,,,,"مەن كىم") -Status: Feedback +Status: No Feedback Type: Bug Package: GD related Operating System: xp/win7 /win8 PHP Version: 5.4Git-2013-09-03 (Git) Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2013-09-03 18:56:58] requinix@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. What bug are you trying to report? I tried your script with Windows' Arial.ttf and it worked just fine for me. ------------------------------------------------------------------------ [2013-09-03 18:44:07] 309165145 at qq dot com 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 this bug report at https://bugs.php.net/bug.php?id=65610&edit=1

« previous php.bugs (#182263) next »