I installed PHP 4.0.6 on my PC (MS 2000 Server) and wrote following code using truetype font image function .
<?
Header("Content-type : image/png");
$im = ImageCreate(500,500);
$black = ImageColorAllocate($im,0,0,0);
$white = ImageColorAllocate($im,255,255,255);
ImageTTFText($im,20,0,0,50,$white,"C:/WINNT/Fonts/WINGDNG3.TTF","Hello! PHP");
ImagePNG($im);
ImageDestroy($im);
?>
But i got the following message that there is no font file.
Warning: Could not find/open font in D:\PHP\test.php on line 10
‰PNG IHDR??MPLTEÿÿÿ?ŸÝ5IDATxœí? ?? n}?ØöIEND®B`
Absolutely true type font file exists there.
What's wrong?