ID:               15568
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         GD related
 Operating System: Linux
 PHP Version:      4.1.1
 New Comment:

No errors. Just a black square.


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

[2002-02-15 09:37:36] [EMAIL PROTECTED]

What error message do you get when running this
code?

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

[2002-02-15 09:21:14] [EMAIL PROTECTED]

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

Reply via email to