Bug #18455: Turning off TTF antialiasing not working
| From: | ja at michbak dot com | Date: | Sun, 21 Jul 2002 13:41:47 +0000 |
| Subject: | Bug #18455: Turning off TTF antialiasing not working | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-14730@lists.php.net to get a copy of this message | ||
From: ja@michbak.com
Operating system: Debian Woody Stable
PHP version: 4.1.2
PHP Bug Type: GD related
Bug description: Turning off TTF antialiasing not working
I cannot switch off antialiasing when drawing TTF fonts on TrueColor
images.
$im = @ImageCreateTrueColor($width, $height);
$cWhite = ImageColorAllocate($im, 255, 255, 255);
$cBlack = ImageColorAllocate($im, 0, 0, 0);
ImageFilledRectangle($im, 0, 0, $width-1, $height-1, $cWhite);
// ...
ImageTTFText($im, $fontSize, 0, $tx, $ty, -$cBlack, $fontFile,
$lines[$i]);
In PHP 4.0.3 it worked correctly.
--
Edit bug report at http://bugs.php.net/?id=18455&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18455&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18455&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18455&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18455&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18455&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18455&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18455&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18455&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18455&r=globals