Bug #12599: ImageTTFText doesn't open font file

From: Date: Mon, 06 Aug 2001 14:56:33 +0000
Subject: Bug #12599: ImageTTFText doesn't open font file
Groups: php.dev 
Request: Send a blank email to php-dev+get-62269@lists.php.net to get a copy of this message
From:             carlos.a.viana@pop3si.com
Operating system: Win98
PHP version:      4.0.6
PHP Bug Type:     GD related
Bug description:  ImageTTFText doesn't open font file

The following code generates this warning (doesn't happen with 4.0.5):
<b>Warning</b>:  Could not find/open font in
<b>d:\public_html\image_create.php</b> on line <b>357</b><br>

Code:
<?php
Header ("Content-type: image/jpeg");
$im = imagecreate (400, 30);
$black = ImageColorAllocate ($im, 0, 0, 0);
$white = ImageColorAllocate ($im, 255, 255, 255);
ImageTTFText ($im, 20, 0, 10, 20, $white, "D:/public_html/fonts/a.ttf",
"Testing... Omega: &#937;");
ImageJpeg ($im);
ImageDestroy ($im);
?>
-- 
Edit bug report at: http://bugs.php.net/?id=12599&edit=1



Thread (5 messages)

« previous php.dev (#62269) next »