In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
says...
> G'day all
> I was wandering I have php installed with GD with freetype fonts compiled in
> I ran this php script
> <?php
> header("Content-type: image/gif");
> $im = imagecreate(400,30);
> $white = imagecolorallocate($im, 255,255,255);
> $black = imagecolorallocate($im, 0,0,0);
> // Replace path by your own font path
> imagettftext($im, 20, 0, 10, 20, $black, "./arial", "Testing... Omega:
> &#937;");
> imagegif($im);
> imagedestroy($im);
> ?>
>
> and nothing gets displayed on the screen.
> Also if i right click in the top right hand corner and click properties the
> type is gif image.
> Can any one tell me what I should double check and what to look for.
> As I am getting no errors messages, I guess that means that free type fonts
> support is installed correctly? or please correct me if im wrong.
>
> Thanks
> CJ
That looks remarkably like an example from the docs; as a first debugging
process try removing the header() and see what error messages you may get.
My guess is that your fontfile string is wrong - I would expect, unless
you have renamed the file, that it would be ./arial.ttf. You might also
find that you need a full path to the font file.
Cheers
--
Quod subigo farinam
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php