From: nate at highsocietyfreeride dot com Operating system: apache? PHP version: Irrelevant PHP Bug Type: *Graphics related Bug description: Writing on a Black BG
Description: ------------ First off, I'm not sure what verison of PHP our servers use. My hosting service is IpowerWeb.com When I use imagettftext to write onto an image, it works fine, unless I allocate the color of 0,0,0. Even 1,1,1 works just fine. When I write to a complete black background the text shows up as rectangles, not the actual letters. The rectangles look like bounding boxes because they take the size of the actual letter its trying to print. Reproduce code: --------------- <?php $im_header = imagecreatetruecolor( 440, 83); $white = imagecolorallocate($im_header, 255, 255, 255); $black = imagecolorallocate($im_header, 0, 0, 0); imagefill($im_header,0,0,$black); imagecolortransparent($im_header, $black); imagettftext($im_header, 32, 0, 0, 42, $white, "fonts/verdana.TTF", "test"); imagejpeg($im_header); ?> -- Edit bug report at http://bugs.php.net/?id=30739&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30739&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30739&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30739&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30739&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30739&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30739&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30739&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30739&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30739&r=support Expected behavior: http://bugs.php.net/fix.php?id=30739&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30739&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30739&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30739&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30739&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30739&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30739&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30739&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30739&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30739&r=mysqlcfg