Re: treu type fonts

From: Date: Wed, 10 Dec 2003 02:10:13 +0000
Subject: Re: treu type fonts
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-172320@lists.php.net to get a copy of this message
Hi, Wednesday, December 10, 2003, 11:53:27 AM, you wrote: c> G'day all c> I was wandering I have php installed with GD with freetype fonts compiled in c> I ran this php script c> <?php c> header("Content-type: image/gif"); c> $im = imagecreate(400,30); c> $white = imagecolorallocate($im, 255,255,255); c> $black = imagecolorallocate($im, 0,0,0); c> // Replace path by your own font path c> imagettftext($im, 20, 0, 10, 20, $black, "./arial", "Testing... Omega: c> &amp;#937;"); c> imagegif($im); c> imagedestroy($im); ?>> c> and nothing gets displayed on the screen. c> Also if i right click in the top right hand corner and click properties the c> type is gif image. c> Can any one tell me what I should double check and what to look for. c> As I am getting no errors messages, I guess that means that free type fonts c> support is installed correctly? or please correct me if im wrong. Depending on where gd came from you may not be able to create gif files only read them. Try generating a png or jpeg -- regards, Tom

« previous php.general (#172320) next »