Bug #775: Function ImageTTFText( ) seems to antialias colours incorrectly

From: Date: Thu, 24 Sep 1998 07:11:25 +0000
Subject: Bug #775: Function ImageTTFText( ) seems to antialias colours incorrectly
Groups: php.dev 
Request: Send a blank email to php-dev+get-1455@lists.php.net to get a copy of this message
From: ccjust@prentice.uq.edu.au Operating system: Windows 95 an NT PHP version: 3.0.4 PHP Bug Type: Misbehaving function Bug description: Function ImageTTFText( ) seems to antialias colours incorrectly 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. -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#1455) next »