I want to produce some unicode text as image.
my string was a unicode text like
$str="#2476;#2494;#2434;#@$*@:#2494;#2470;#2503;#2 486;";
I want to produce this string as image using Vrinda font.
Code:
<?php
$str="#2476;#2494;#2434;#@$*@:#2494;#2470;#2503;#2486;";
header("Content-type:image/jpeg");
$im=imagecreate(100,50) or die("Can't create image");
$bg=imagecolorallocate($im,255,255,255);
$text=imagecolorallocate($im,0,0,0);
$font=imageloadfont("vrinda.ttf");
imagestring($im,$font,5,5,$str, $text);
imagejpeg($im);
?>
but the above code is not working.
Best Regard:
Md. Zakir Hossain (Raju)
www.rajuru.xenexbd.com - my blog with PHP scripts, PHP Book Review and many more