Bug #15568 Updated: ImageTTFText doesn't work in 4.1.1

From: Date: Thu, 21 Feb 2002 22:25:16 +0000
Subject: Bug #15568 Updated: ImageTTFText doesn't work in 4.1.1
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-763@lists.php.net to get a copy of this message
ID: 15568 Updated by: taco@sun.com Reported By: reweiner@yahoo.com Status: Feedback Bug Type: GD related Operating System: Linux PHP Version: 4.1.1 New Comment: Remove the header line and take a look at the output. You will probably see the error now .... Previous Comments: ------------------------------------------------------------------------ [2002-02-15 09:50:55] reweiner@yahoo.com No errors. Just a black square. ------------------------------------------------------------------------ [2002-02-15 09:37:36] mrobinso@php.net What error message do you get when running this code? ------------------------------------------------------------------------ [2002-02-15 09:21:14] reweiner@yahoo.com The following code works in 4.0.6 but doesn't in 4.1.1 Both are compiled with the same flags: --with-freetype --with-gd --with-ttf For 4.1.1 I added: --enable-gd-native-ttf --with-freetype-dir=/usr ( you need a font to test this. In this case - shelley.ttf ) <?php Header ("Content-type: image/png"); $im = imagecreate (400, 30); $black = ImageColorAllocate ($im, 0, 0, 0); $white = ImageColorAllocate ($im, 255, 255, 255); ImageTTFText ($im, 20, 0, 10, 20, $white, "shelley.ttf", "Testing... Omega: &#937;"); ImagePNG($im); ImageDestroy ($im); ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15568&edit=1

« previous php.bugs (#763) next »