php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16087 Could not find/open font
Submitted: 2002-03-14 19:06 UTC Modified: 2002-03-14 19:20 UTC
From: mvc_aaa at yahoo dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.1.2 OS: Linux RedHat 6.2
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mvc_aaa at yahoo dot com
New email:
PHP Version: OS:

 

 [2002-03-14 19:06 UTC] mvc_aaa at yahoo dot com
Code:
Header ("Content-type: image/png");                     
$im = imagecreate (400, 30);                            
$black = ImageColorAllocate ($im, 0, 0, 0);             
$white = ImageColorAllocate ($im, 255, 255, 255);       
ImageTTFText ($im, 20, 0, 10, 20, $white, "./arial.ttf",
              "Testing... Omega: Ω");              
ImagePNG ($im);                                         
ImageDestroy ($im);                                     

As Result:
Warning: Could not find/open font in /home/denis/public_html/rambler/test2.php on line 8
Warning: Could not find/open font in /home/denis/public_html/rambler/test2.php on line 12

As i known, this is a old bug with all prev. versions, please fix it. (and in 4.1.3-devCVS too)...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-14 19:20 UTC] rasmus@php.net
Use a full path.  Font handling was changed in GD along the way, so if you insist that it is a bug, report it to the GD people, not us.
 [2002-07-16 06:23 UTC] news at dennisheck dot de
Hello at php.net!

I experienced the same problem, but never before version 4.2.1 of php.
I'm running php on win32, and the described error only occured with the new gd2.dll part of 4.2.1 package. The gd2 within 4.2.0 worked well with imagettf (But denies to work with php 4.2.1). Absolute or relative path did make no difference.
I already wrote a mail to boutell.com, but if you can help solve the problem, please let me know.
Thanks a lot,
Dennis Heck
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 13:01:31 2024 UTC