Edit report at https://bugs.php.net/bug.php?id=65610&edit=1

 ID:                 65610
 Updated by:         requi...@php.net
 Reported by:        309165145 at qq dot com
 Summary:            imagettftext("",,,,,,"مەن كىم")
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            GD related
 Operating System:   xp/win7 /win8
 PHP Version:        5.4Git-2013-09-03 (Git)
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[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

Reply via email to