php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12599 ImageTTFText doesn't open font file
Submitted: 2001-08-06 10:56 UTC Modified: 2001-08-06 11:41 UTC
From: carlos dot a dot viana at pop3si dot com Assigned:
Status: Closed Package: GD related
PHP Version: 4.0.6 OS: Win98
Private report: No CVE-ID: None
 [2001-08-06 10:56 UTC] carlos dot a dot viana at pop3si dot com
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);
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-06 11:41 UTC] sniper@php.net
This has been fixed in CVS already. Next time, use the search before submitting bug reports..

--Jani

 [2001-08-06 11:41 UTC] sniper@php.net
This has been fixed in CVS already. Next time, use the search before submitting bug reports..

--Jani

 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Oct 06 15:05:53 2022 UTC