imageTTFtext() doesn't work

From: Date: Wed, 29 May 2002 00:38:07 +0000
Subject: imageTTFtext() doesn't work
Groups: php.general 
Request: Send a blank email to php-general+get-99609@lists.php.net to get a copy of this message
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 chris@chris-s.com www.chris-s.com PGP Key 0x0021EFA0

« previous php.general (#99609) next »