php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41336 Warning: imagettftext() : Could not find/open font
Submitted: 2007-05-09 06:41 UTC Modified: 2007-05-09 09:11 UTC
From: jblaguarigue at worldonline dot fr Assigned: pajoye (profile)
Status: Not a bug Package: GD related
PHP Version: 5.2.2 OS: Win XP
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: jblaguarigue at worldonline dot fr
New email:
PHP Version: OS:

 

 [2007-05-09 06:41 UTC] jblaguarigue at worldonline dot fr
Description:
------------
When changing from 5.2.1 to 5.2.2 the program send back a warning with imagettftext function : Could not find/open font.
Therefore, the text on my GIF isn't printed.

It worked correctly in 5.2.1.


Reproduce code:
---------------
imagettftext($im,10,0,$this->trfX($maxX)+10,$label['Y'],$color,'Arial',$label['label']);

Expected result:
----------------
No warning and text printed

Actual result:
--------------
Warning: imagettftext() [function.imagettftext]: Could not find/open font in C:\Developpements\Duplibridge\CS_Graph.inc on line 126

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-09 07:08 UTC] pajoye@php.net
"Warning: imagettftext() [function.imagettftext]: Could not find/open
font in C:\Developpements\Duplibridge\CS_Graph.inc on line 126"

It did not find the font file.

What's in your GDFONTPATH environment variable (if it exists)?

If it does not exist, you have to specify the complete path to the font file.
 [2007-05-09 09:09 UTC] jblaguarigue at worldonline dot fr
OK, it works.
 [2007-05-09 09:11 UTC] pajoye@php.net
not a bug > bogus.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jun 19 20:01:33 2025 UTC