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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 23:01:33 2024 UTC