Bug #13502 Updated: ImageTTFText double-strikes text

From: Date: Fri, 28 Jun 2002 06:57:15 +0000
Subject: Bug #13502 Updated: ImageTTFText double-strikes text
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12330@lists.php.net to get a copy of this message
ID: 13502 Updated by: sniper@php.net Reported By: holdrens@nukote.com -Status: Open +Status: Bogus Bug Type: GD related Operating System: Linux 2.4.6 - Debian PHP Version: 4.0.6 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately your version of PHP is too old -- 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. I can't reproduce this. Previous Comments: ------------------------------------------------------------------------ [2001-10-01 16:28:05] holdrens@nukote.com When I specify an absolute path to a font with ImageTTFText, such as "$DOCUMENT_ROOT/fonts/verdana.ttf", it displays the text twice on top of itself, but slightly misaligned to produce a blurring effect. I get this effect with all truetype fonts. ImagePSText does not exhibit this behavior. When I specify the font using a relative path, like "../../../../$DOCUMENT_ROOT/fonts/verdana.ttf", it displays fine. Here's an example of what causes the problem: $im = ImageCreate(100,100); $white = ImageColorAllocate ($im, 0xFF, 0xFF, 0xFF); $b $black = ImageColorAllocate ($im, 0x00, 0x00, 0x00); ImageTTFText($im,16,0,0,50,$black, "$DOCUMENT_ROOT/fonts/verdana.ttf","Testing..."); Header("Content-type: image/png"); ImagePNG($im); ImageDestroy($im); And here's what makes the problem go away: ImageTTFText($im,16,0,0,50,$black, "../../../../$DOCUMENT_ROOT/fonts/verdana.ttf", "Testing..."); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=13502&edit=1

« previous php.bugs (#12330) next »