Hi,
i am trying to create an image containing text using the Gd library.
The string and language is input using a form and then my php script.
Heres what i am using!
This thing works prefectly for English characters but when i use a language that supports accented charactes
example italian the string displayed soes contain accented characters but they are not the same as the ones input on the form
What variable / font name do i need to set?
header ("Content-type: image/png");
$im = @imagecreate (200, 200)
or die ("Cannot Initialize new GD image stream");
$im = ImageCreateFromgif("icons/promessage.gif");
$fontcolor = ImageColorAllocate($im, 120, 110, 60);
$px = (imagesx($im)-7.5*strlen($string))/2;
ImageString($im,3,10,9,$string,$fontcolor);
ImagePng($im);
ImageDestroy($im);