ID: 33404 Updated by: [EMAIL PROTECTED] Reported By: david dot perianghendra at gmail dot com -Status: Closed +Status: Bogus Bug Type: GD related Operating System: Linux PHP Version: 5.0.3 Assigned To: pajoye New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Works here using your font. You may have another problem in your script, tip of the day: E_ALL --Pierre Previous Comments: ------------------------------------------------------------------------ [2005-06-21 12:55:24] [EMAIL PROTECTED] This is why you should *always* use the bundled GD library! ------------------------------------------------------------------------ [2005-06-21 12:44:01] david dot perianghendra at gmail dot com Thxs ------------------------------------------------------------------------ [2005-06-21 12:42:50] david dot perianghendra at gmail dot com Here come the bad news... - I finally managed to ugrade my GD library (from 1.8.4 => 2.0.33) and compile it into php. The good news is - It works. Resulting image contain text with specified TTF. I'm sorry be4 n thxs ------------------------------------------------------------------------ [2005-06-21 12:37:21] [EMAIL PROTECTED] This works fine for me: <?php header("Content-type: image/png"); $im = imagecreate(400, 30); $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); $text = 'Bleh...'; $font = 'cour.ttf'; putenv( 'GDFONTPATH='.realpath('.') ); imagettftext($im, 20, 0, 11, 21, $grey, $font, $text); imagettftext($im, 20, 0, 10, 20, $black, $font, $text); imagepng($im); imagedestroy($im); ?> Your font-filename is in lowercase, I hope you knew that.. :) And I'm using the PHP's bundled GD, and freetype 2.1.9 ------------------------------------------------------------------------ [2005-06-21 10:32:07] david dot perianghendra at gmail dot com http://bilbo.kgblogger.com/testing/cour.ttf ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/33404 -- Edit this bug report at http://bugs.php.net/?id=33404&edit=1