Is there an easy way to see if my php4 was compiled with ttf support? I am looking at a tutorial on the site here and can't make heads or tails out of why it's not working. I get an error message stating its not supported in this PHP build, but can't find any instructions on how to change that.
Thanks
Joe
Specifically when I run:
<?
Header("Content-type: image/gif");
if(!isset($s)) $s=11;
if(!isset($text)) $s="This is a test";
$size = imagettfbbox($s,0,"/revjoe/www/fonts/TIMES.TTF",$text);
$dx = abs($size[2]-$size[0]);
$dy = abs($size[5]-$size[3]);
$xpad=9;
$ypad=9;
$im = imagecreate($dx+$xpad,$dy+$ypad);
$blue = ImageColorAllocate($im, 0x2c,0x6D,0xAF);
$black = ImageColorAllocate($im, 0,0,0);
$white = ImageColorAllocate($im, 255,255,255);
ImageRectangle($im,0,0,$dx+$xpad-1,$dy+$ypad-1,$black);
ImageRectangle($im,0,0,$dx+$xpad,$dy+$ypad,$white);
ImageTTFText($im, $s, 0, (int)($xpad/2)+1, $dy+(int)($ypad/2), $black, "/revjoe/www/fonts/TIMES.TTF", $text);
ImageTTFText($im, $s, 0, (int)($xpad/2), $dy+(int)($ypad/2)-1, $white, "/revjoe/www/fonts/TIMES.TTF", $text);
ImageGif($im);
ImageDestroy($im);
?>
I get:
<br>
<b>Warning</b>: ImageTtfBBox: No TTF support in this PHP build in <b>/revjoe/www/fonts/fonts.php</b> on line <b>5</b><br>
<br>
<b>Warning</b>: ImageTtfText: No TTF support in this PHP build in <b>/revjoe/www/fonts/fonts.php</b> on line <b>16</b><br>
<br>
<b>Warning</b>: ImageTtfText: No TTF support in this PHP build in <b>/revjoe/www/fonts/fonts.php</b> on line <b>17</b><br>
<br>
<b>Warning</b>: ImageGif: No GIF support in this PHP build in <b>/revjoe/www/fonts/fonts.php</b> on line <b>18</b><br>