RE: [PHP] treu type fonts
| From: | cj | Date: | Wed, 10 Dec 2003 22:06:36 +0000 |
| Subject: | RE: [PHP] treu type fonts | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172396@lists.php.net to get a copy of this message | ||
Thanks Tom
I tried the png like you suggested and the same thing happens.
I get nothing on the screen but if I do a right click and properties on the
spot where the image should be the image type is a png image.
-----Original Message-----
From: Tom Rogers [mailto:trogers@kwikin.com]
Sent: Wednesday, 10 December 2003 1:10 PM
To: cj
Cc: php-general@lists.php.net
Subject: Re: [PHP] treu type fonts
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> &#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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php