Am having a problem with the colors of TTF's...
It seems that the colors are being blended together. The first color variable appears to be given to the background, then the foreground color is assigned in the ImageTTFText command... then the resulting color is a blend of the foreground and background... have tried with and without the background being transparent...
here's the code:
<?
Header ("Content-type: image/gif");
$padding = 6;
$size="80";
$dim = imageTTFbbox($size,0,$font,$text);
$width = abs($dim[2] - $dim[0]) + $padding;
$height = abs($dim[1] - $dim[7]) + $padding;
$amtleftofBL = $dim[0];
$amtbelowBL = $dim[1];
$xcoord = (int)($padding/2) - $amtleftofBL;
$ycoord = $height - $amtbelowBL - ((int)(($padding/2)+4));
$im = imagecreate ($width, $height);
$trans = ImageColorAllocate($im, 255,255,254);
$tan = ImageColorAllocate ($im, 253, 245, 230);
$cyan = ImageColorAllocate($im, 37,44,180);
$black = ImageColorAllocate($im,0, 0, 0);
$white = ImageColorAllocate($im,255, 255, 255);
$red = ImageColorAllocate($im,255,10,10);
$green = ImageColorAllocate($im,10,255,10);
$blue = ImageColorAllocate($im,10,10,255);
$yellow = ImageColorAllocate($im,255,255,0);
ImageColorTransparent($im,$trans);
ImageTTFText ($im, $size, 0, $xcoord, $ycoord, $yellow, $font, $text);
ImageGif ($im);
ImageDestroy ($im);
?>
Thanks.