Bug #14876 Updated: ImageTTFText produces strange Warning

From: Date: Sat, 13 Apr 2002 23:31:14 +0000
Subject: Bug #14876 Updated: ImageTTFText produces strange Warning
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-4931@lists.php.net to get a copy of this message
ID: 14876 Updated by: Jouser@attbi.com Reported By: apz@iname.com Status: Open Bug Type: GD related Operating System: Windows 2000 PHP Version: 4.1.1 New Comment: Does anyone know if the same person who compiled php_gd.dll also compiled php_gd2.dll? I think the problem might be that whoever compiled the php_gd2.dll that ships with PHP forgot to compile FreeType library while compiling GD. This is only a guess because I heard someone say that ImageTTFtext works on unix machines which leads me to believe this is the problem. I would test it myself but I don't know how to compile the file :-( Previous Comments: ------------------------------------------------------------------------ [2002-01-05 14:49:22] apz@iname.com Hi. I can't use ImageTTFText with PHP_GD2.DLL (on Windows 2000). The Following Code works on GD1 with 4.1.1 and also GD2 with 4.0.6 (both downloadable compilations) ... $im = ImageCreate (300, 300); $color = ImageColorAllocate ($im, 255,135,000); $black = ImageColorAllocate ($im, 000,000,000); $white = ImageColorAllocate ($im, 255,255,255); ImageFill ($im, 0,0, $color); ImageTTFText ($im, 9, 0, 10, 200, $white, "\WINNT\Fonts\verdana.ttf", "Hello"); ImagePNG ($im); And produces a Warning like this. "Warning: & in f:\http\test\php\testat.php on line 9" The five chars following the "Warning:" are different depending at least on the give font-path (IMHO). I tried varios combinations: Path seperation with "/" and "\", several locations: Absolute paths, fonts beeing in the script directory. apache directory, php directory, with and without leading drive-letter. GD2 is the only extension included. Win2KSP2(German)/Apache 1.3.22/PHP 4.1.1 +++adam ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=14876&edit=1

« previous php.bugs (#4931) next »