php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #775 Function ImageTTFText( ) seems to antialias colours incorrectly
Submitted: 1998-09-24 03:11 UTC Modified: 1998-10-03 15:38 UTC
From: ccjust at prentice dot uq dot edu dot au Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.4 OS: Windows 95 an NT
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ccjust at prentice dot uq dot edu dot au
New email:
PHP Version: OS:

 

 [1998-09-24 03:11 UTC] ccjust at prentice dot uq dot edu dot au
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-10-03 15:38 UTC] shane
This must have been a problem in the freetype library.  I downloaded the latest freetype code today, and compiled,
and no more problem.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 11:01:34 2025 UTC