Hello,

I'm just playing around with the imageTTftext() function but it doesn't
seem to be working.  I can output an image, but when I use the text
function, nothing is displayed, not even the image.

This is running on a RHL 7.2 system with the following installed:

php-4.0.6-7
gd-1.8.4-4
freetype-2.0.3-7
freetype-devel-2.0.3-7
apache-1.3.22-2

php has been compilied with the '--with-ttf' option
Has anybody seen this problem before?

Here is my code:

<?php

    header("Content-type: image/gif");

    $image  = imagecreate(400,200);
    $red    = imagecolorallocate($image,255,0,0);
    $blue   = imagecolorallocate($image,0,0,255);

    $font   = "/var/www/html/arib____.ttf";

    imagettftext($image, 50, 0, 20, 100, $blue, $font, "Hello World");

    imagejpeg($image);

?>

Thanks


-- 
Chris Sechiatano
[EMAIL PROTECTED]
www.chris-s.com

PGP Key 0x0021EFA0


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to