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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 19:01:28 2024 UTC