Bug #13197 Updated: ImageTTFText broken on truecolor images

From: Date: Mon, 19 Nov 2001 16:09:38 +0000
Subject: Bug #13197 Updated: ImageTTFText broken on truecolor images
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-70937@lists.php.net to get a copy of this message
ID: 13197 Updated by: rasmus Reported By: jeremy@deadbeef.com 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] jeremy@deadbeef.com 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

« previous php.dev (#70937) next »