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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: carlos dot a dot viana at pop3si dot com
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 14:01:29 2024 UTC