ID:               14876
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 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] [EMAIL PROTECTED]

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

Reply via email to