Hi, I am looking for help regarding the use of true type font in GD, somehow the code shown below doesn't work and it says
"Warning: Could not find/open font.." . Currently I'm using php 4.0.6 ,GD 2.0+ on my windows(ME) box. Any idea?Thank you so much.
<?php
header ("Content-type: image/png");
$im = imagecreate (400, 30);
$black = imagecolorallocate ($im, 0, 0, 0);
$white = imagecolorallocate ($im, 255, 255, 255);
imagettftext ($im, 20, 0, 10, 20, $white, "c:/windows/font/arial.ttf", "Testing");
imagepng ($im);
imagedestroy ($im);
?>
P.S: my font file is stored in c:/windows/font/