Bug #14347 Updated: PHP 4.06 with Freetype 2 and GD 2 does not anti-alias
| From: | derick@php.net | Date: | Wed, 05 Dec 2001 11:42:38 +0000 |
| Subject: | Bug #14347 Updated: PHP 4.06 with Freetype 2 and GD 2 does not anti-alias | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-72573@lists.php.net to get a copy of this message | ||
ID: 14347
Updated by: derick
Reported By: hs@cybertec.at
Old Status: Open
Status: Closed
Bug Type: GD related
Operating System: Linux
PHP Version: 4.0.6
New Comment:
Not a bug in PHP, bug in GD. That should be fixed in the upcoming? gd 2.0.2
Derick
Previous Comments:
------------------------------------------------------------------------
[2001-12-05 06:41:35] hs@cybertec.at
PHP 4.06 with Freetype 2 and GD 2 does not anti-alias.
In the documentation it says that anti-aliasing can only be disabled by using a negative color
(-$black). On my system PHP does not anti-alias; no matter if I am using positiv or negative values.
That's the code:
$im = ImageCreateFromJpeg ("$motiv");
$white = imagecolorclosest ($im, 255, 255, 255);
$black = imagecolorclosest ($im, 0, 0, 0);
...
$data = imagettftext($im, $karten_fontsize, 0,
$newx, $xstart, $black, $karten_font, $mytext[$o]);
It works but it just doesn't anti-alias.
Hans
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14347&edit=1