Try this modified code from TTF fonts and Russian in PHP4's GD. It seems to work ok on:
Win 2000 pro
Apache 1.3.19
php 4.3.0
gd 2
function iso2uni ($isoline){
for ($i=0; $i < strlen($isoline); $i++){
$thischar=substr($isoline,$i,1);
$charcode=ord($thischar);
$uniline.=($charcode>175) ? "&#" . (896+($charcode-176)). ";" : $thischar;
}
return $uniline;
}
Header ("Content-type: image/png");
$im = imagecreate(400,30);
$black = ImageColorAllocate($im, 0, 0, 0);
$white = ImageColorAllocate($im, 255, 255, 255);
$rr= "ÊÁËÇÌÅÑÁ";
ImageTTFText ($im, 20, 0, 10, 20, $white, "c:\\windows\\fonts\\couri.ttf", iso2uni($rr));
imagepng($im);
ImageDestroy($im);
Hope it helped.