ID: 13197
Updated by: rasmus
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: GD related
Operating System: Linux
PHP Version: 4.0.6
New Comment:

Remove the - in front of $white there in your ImageTTFText() call and you should see 
something.  There is a known issue with anti-aliased ttf text on truecolor images in 
gd-2.0.1.  Hopefully this will be fixed in gd-2.0.2, but regardless, it is not a PHP 
bug.

Previous Comments:
------------------------------------------------------------------------

[2001-09-07 12:09:51] [EMAIL PROTECTED]

The resulting image is blank, works fine for palette images.



$img = ImageCreateTrueColor(300, 300);
$black = ImageColorAllocate ($img, 0, 0, 0);
$white = ImageColorAllocate ($img, 255, 255, 255);
ImageTTFText ($img, 40, 0, 20, ImageSY($img)-20, -$white, 
"/home/sageconspiracy/lib/fonts/bio.ttf", "TextText");
ImageJPEG($img, "", 50);

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=13197&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to