php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15405 anti-aliasing switch (-$color) is wack in ImageTTFText
Submitted: 2002-02-06 15:00 UTC Modified: 2002-02-06 16:53 UTC
From: mrowe at pointsystems dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.1.1 OS: Linux
Private report: No CVE-ID: None
 [2002-02-06 15:00 UTC] mrowe at pointsystems dot com
i'm using v2.0.1 of gd.

when i run:
ImageTTFText($image, $size, $rot, $stringX, $stringY, $white, $font, $msg);

The text is white.

when i run:
ImageTTFText($image, $size, $rot, $stringX, $stringY, -$white, $font, $msg);

(note the "-" in front of the color), the text is not white.  it's sometimes yellow, sometimes grey, but never white.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-06 16:53 UTC] mfischer@php.net
Yeah it's cool, isn't it? It's even documented:

http://www.php.net/manual/en/function.imagettftext.php
 [2002-02-06 16:53 UTC] mfischer@php.net
Yeah it's cool, isn't it? It's even documented:

http://www.php.net/manual/en/function.imagettftext.php
 [2003-12-07 13:28 UTC] yvan dot taviaud at m4am dot net
Still Bogus in GD 2.0.15. The negative index makes text really strange, some kind of raw text antialiased and then the antialias is removed, leaving a lot of strange pixels everywhere (instead of not doing anything ;o).

Any clues ?

>> http://www.lacoccinelle.net/test/index.php for a graphical example
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC