Truetype issues

From: Date: Fri, 15 Sep 2000 22:10:51 +0000
Subject: Truetype issues
Groups: php.windows 
Request: Send a blank email to php-windows+get-2689@lists.php.net to get a copy of this message
Hello! I ran the easy windows installer at php.weblogs.com and am having an issue with GD and the truetype font functions. I keep getting Warning: Could not find/open font in c:\inetpub\wwwroot\freeways\test\gd2.php3 on line 5 Warning: Could not find/open font in c:\inetpub\wwwroot\freeways\test\gd2.php3 on line 15 Warning: Could not find/open font in c:\inetpub\wwwroot\freeways\test\gd2.php3 on line 16 For the life of me I cannot figure it out. The app runs on Linux without a hitch. Here is the code: <? // Header( "Content-type: image/gif");
    $s=40;
    $size = imagettfbbox($s,0, "Adventure.ttf",$text);
    $dx = abs($size[2]-$size[0]);
    $dy = abs($size[5]-$size[3]);
    $xpad=9;
    $ypad=9;
     $im = imagecreate(400,400);
    $blue = ImageColorAllocate($im, 0x2c,0x6D,0xAF);
    $black = ImageColorAllocate($im, 0,0,0);
    $white = ImageColorAllocate($im, 176,0,0);
    $font= "Adventure.ttf";
    ImageTTFText($im, $s, 0, (int)($xpad/2)+22, (int)($ypad/2)-8, $black, $font, $text);
    ImageTTFText($im, $s, 0, (int)($xpad/2)+10, (int)($ypad/2)+9, $white, $font, $text);
    Imagegif($im);
ImageDestroy($im); ?> Any comments appreciated. I am running windows 2000 with IIS. Dan ----------------------------- Dan Radigan Quality Assurance Engineer - UltraDev (650)-481-4621 dradigan@macromedia.com

« previous php.windows (#2689) next »