ID:               33404
 User updated by:  david dot perianghendra at gmail dot com
 Reported By:      david dot perianghendra at gmail dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         GD related
 Operating System: Linux
 PHP Version:      5.0.3
 Assigned To:      pajoye
 New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[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

------------------------------------------------------------------------

[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

------------------------------------------------------------------------

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

Reply via email to