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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Fri Dec 27 07:01:28 2024 UTC