Annotate() not working for arabic text?
Posted: 2016-08-11T06:02:16-07:00
Why arabic is coming question mark? I have tried lot of things nothing worked
Below is the output,
Code: Select all
$final_image = new Imagick();
$final_image->newImage( 800, 420, new ImagickPixel('#ffffff'));
$final_image->setImageFormat('jpg');
$draw = new ImagickDraw();
$draw->setFillColor('#000');
$draw->setFont('AvantGarde-Demi');
$draw->setFontSize( 30 );
//Message1 is Hello my name is
$message1= "مرحبا اسمي";
$final_image->annotateImage( $draw, 40, 20, 0, "$message1");
$final_image->annotateImage( $draw, 40, 80, 0, "this text is in english");