Menu
can someone help me on drawing text to image? I tried to draw khmer unicode text to image. It shows not correct. I used to have the rendering problem in .Net because of GDI and GDI+. it’s ok for GDI not for GDI+. it might be similar problem. can someone help me?
this is my php code
$im = imagecreate($i_width, $i_height);
$white = imagecolorallocate ($im, 255, 255, 255);
$black = imagecolorallocate ($im, 0, 0, 0);
ImageFtText($im, $pointsize, 0, 0, 18, $black , $fontfile, $string, array(“linespacing” => 1));
imagepng($im,”content.png”);
ImageDestroy ($im);