ID: 33404
Updated by: [EMAIL PROTECTED]
Reported By: david dot perianghendra at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: GD related
Operating System: Linux
PHP Version: 5.0.3
Assigned To: pajoye
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2005-06-21 10:32:07] david dot perianghendra at gmail dot com
http://bilbo.kgblogger.com/testing/cour.ttf
------------------------------------------------------------------------
[2005-06-21 09:55:15] [EMAIL PROTECTED]
We need the TTF file, provide a link where we can dowload it.
I still have no idea what your result is, provide a link to the result
image as well.
iirc, links could something like http://youdomainhere.com/cour.ttf or
http://youdomainhere.com/result_img.png
------------------------------------------------------------------------
[2005-06-21 09:36:54] david dot perianghendra at gmail dot com
I have add the full path link to my ttf font file but it's still
produce the same result.
------------------------------------------------------------------------
[2005-06-21 09:07:21] [EMAIL PROTECTED]
Please provide a link to your TTF font. But it works well here (using
windows cour.ttf or any other valid ttf).
--Pierre
------------------------------------------------------------------------
[2005-06-20 09:31:25] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
AFAIK, this was fixed long time ago.
------------------------------------------------------------------------
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