From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.1.1
PHP Bug Type:     GD related
Bug description:  ImageTTFText doesn't work in 4.1.1

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 bug report at http://bugs.php.net/?id=15568&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=15568&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=15568&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=15568&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=15568&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15568&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=15568&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=15568&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=15568&r=submittedtwice

Reply via email to