ID:               25928
 Updated by:       [EMAIL PROTECTED]
 Reported By:      yvan dot taviaud at m4am dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         GD related
 Operating System: RedHat 7.3
 PHP Version:      4CVS-2003-10-20 (stable)
 New Comment:

The whole point of anti-aliasing explained:

http://www.widearea.co.uk/designer/anti.html



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

[2003-10-20 19:26:38] yvan dot taviaud at m4am dot net

Description:
------------
My server is :
- RedHat 7.3
- Apache 1.3.28
- PHP 4.3.4RC3-dev (tried this last one to see if the bug disappears,
but not)
- bundled GD (2.0.15)
- FreeType 2.1.5

The problem is that when I use a negative color index for
ImageTTFText(), the antialias disappears, but the text is quite ugly,
and should not. No info on GD/FreeType website is available on such a
bug.

Reproduce code:
---------------
$height = 60;
$width = 150;
$font = "arial.ttf";
$img_en = imageCreate($width, $height);

$background_en = imageColorAllocate($img_en, 0xFF, 0xFF, 0xFF);
$color_en = imageColorAllocate($img_en, 0x0F, 0xBD, 0xBF);

// Antialias :
imageTTFText($img_en, 12, 0, 10, 30, $color_en, $font, "AZERTYUIOP");
// No antialias :
imageTTFText($img_en, 12, 0, 10, 50, -$color_en, $font, "AZERTYUIOP");

imagePNG($img_en);

Expected result:
----------------
A clean text, such as the one you could see on a web page (because the
text is never antialiased on a web page).

Actual result:
--------------
You could see the actual result at this address :
http://www.lacoccinelle.net/test/index.php


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


-- 
Edit this bug report at http://bugs.php.net/?id=25928&edit=1

Reply via email to