[PHP-DEV] Bug #775 Updated: Function ImageTTFText( ) seems to antialias colours incorrectly From: Bug Database (php-dev <email protected>)
Date: 09/28/98

ID: 775
User Update by: ccjust <email protected>
Status: Open
Bug Type: Misbehaving function
Description: Function ImageTTFText( ) seems to antialias colours incorrectly

This provides additional info and code to in relation to BUG #720

Version of PHP -- All Versions including PHP 3.04 Win32

The latest freetype.dll which came with PHP 3.04 Win32
The latest php3_gd.dll which came with PHP 3.04 Win32

The script below shows the bugs behaviour

http://void.cc.uq.edu.au/cameron/imagephp/list.html

Each of the imagecreation files has the following code.
<?
  Header("Content-type: image/gif");
  $im = imagecreate(400,100);
  $white = ImageColorAllocate($im, 204,204,204);
  $black = ImageColorAllocate($im, 40,40,40);
  ImageTTFText($im, 48, 0, 32, 64, $black, "c:\windows\fonts\verdana.ttf", "yadda yadda");
  ImageGif($im);
  ImageDestroy($im);
?>

where the colours are indicated in the filename.

I don't know whether it's the freetype.dll or the function.
It just looks like the antialiasing is going outa whack.

I have tested this on a linux system and it works perfectly, no sign of any problems.

Full Bug description available at: http://ca.php.net/bugs.php3?id=775

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>