php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18455 Turning off TTF antialiasing not working
Submitted: 2002-07-21 09:41 UTC Modified: 2002-07-22 21:47 UTC
From: ja at michbak dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.1.2 OS: Debian Woody Stable
Private report: No CVE-ID: None
 [2002-07-21 09:41 UTC] ja at michbak dot com
I cannot switch off antialiasing when drawing TTF fonts on TrueColor images.

$im = @ImageCreateTrueColor($width, $height);

$cWhite = ImageColorAllocate($im, 255, 255, 255);
$cBlack = ImageColorAllocate($im, 0, 0, 0);
       
ImageFilledRectangle($im, 0, 0, $width-1, $height-1, $cWhite);

// ...

ImageTTFText($im, $fontSize, 0, $tx, $ty, -$cBlack, $fontFile, $lines[$i]);

In PHP 4.0.3 it worked correctly.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-22 21:47 UTC] sniper@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 12:01:29 2024 UTC