[GD]Could not find/open font - font problem

From: carramba (carramba_at_bootre.com)
Date: 03/09/04


Date: 9 Mar 2004 12:00:18 -0800

I know this subjekt was up several times but Icant get it work
use gd2 on win32
<?
putenv('GDFONTPATH=f:\swd\font');
$font = "f:/swd/font/arial.ttf";
$im = imagecreate (250, 28);
$black = ImageColorAllocate ($im, 0, 0, 0);
$yellow = ImageColorAllocate ($im, 235, 235, 51);
ImageTTFText ($im, 20, 0, 10, 20, $yellow, $font,
              "comming text or not?");
ImagePNG($im,test.png);

?>
<img src="test.png" alt="image">

but I allway get error about not finding font ..

what should I do?