Вобще постучал в бубен и заработало.
Дополнительно кладем в папку со скриптом файл шрифта, в моем случае использовался tahomabd.ttf
Если у вас win то скорее всего шрифты лежат в c:\windows\fonts
Сам скрипт немного изменился в части вывода, приведу целиком дабы не было путаницы.
CODE
<?php
$banner_image = "http://img234.img.bn/img234/9251/48406776nh4.jpg";
$myinfo = NULL;
$f = fopen("http://rusro2.com/top.php?id=".$_GET['__uid'],'r');
if ($f != NULL)
{
$foobar=false;
while (!feof($f))
{
$tstr = fgets($f);
if (strpos(trim($tstr), 'Имя:'))
{ $rawname=strip_tags($tstr);
$name=substr($rawname,6);
$name=substr($name,0,-2);
$tstr = fgets($f);
$rawguild=strip_tags($tstr);
$guild=substr($rawguild,10);
$guild=substr($guild,0,-2);
$tstr = fgets($f);
$rawprof=strip_tags($tstr);
$prof=substr($rawprof,12);
$prof=substr($prof,0,-2);
$tstr = fgets($f);
$base = substr(strip_tags($tstr),18);
$base=substr($base,0,-2);
$tstr = fgets($f);
$tstr = fgets($f);
$tstr = fgets($f);
$job = substr(strip_tags($tstr),16);
$job = substr($job,0,-2);
$foobar=true;
}
if($foobar){
if (strpos(trim($tstr),"offline")) {$status="Offline";}
if (strpos(trim($tstr),"online")) {$status="Online";}
};
}
}
fclose($f);
function iso2uni ($isoline) {
$uniline="";
for ($i=0; $i < strlen($isoline); $i++){
$thischar=substr($isoline,$i,1);
$charcode=ord($thischar);
$uniline.=($charcode>175)?"&#".(1040+($charcode-176)).";":$thischar;
}
return $uniline;
}
//putenv('GDFONTPATH=' . realpath('.'));
Header("Pragma: no-cache");
$imf = $GLOBALS['banner_image'];
$fn = fopen($imf, "r");
if ($fn != false)
{
fclose($fn);
header("Content-Type: image/jpg");
$im = imagecreatefromjpeg($imf);
$orange = imagecolorallocate($im, 255, 255, 0);
//$string1 = "$name - $prof ( $base / $job ) [ $guild ]";
$string1 = "$name $prof ( $base / $job )";
$string2 = $status;
$string1 = iso2uni(convert_cyr_string($string1,"w","i"));
$string2 = iso2uni(convert_cyr_string($string2,"w","i"));
$font = 'tahomabd.ttf';
imagettftext($im, 12, 0, 5, 20, $orange, $font, $string1);
imagettftext($im, 12, 0, 5, 50, $orange, $font, $string2);
imagejpeg($im);
imagedestroy($im);
exit;
}
header("Content-type: image/png");
$im = @ImageCreate (50, 15) or die ("Cannot Initialize new GD image stream");
$background_color = ImageColorAllocate($im, 225, 130, 130);
$text_color = ImageColorAllocate ($im, 0, 0, 0);
ImageString ($im, 2, 4, 1, "NO FILE", $text_color);
ImagePng($im);
?>
Вот собственно и все )). В остальном смотри что написано ранее.
Что у меня получилось смотрите в подписи.