#41336 [Fbk->Csd]: Warning: imagettftext() : Could not find/open font
| From: | jblaguarigue at worldonline dot fr | Date: | Wed, 09 May 2007 09:09:32 +0000 |
| Subject: | #41336 [Fbk->Csd]: Warning: imagettftext() : Could not find/open font | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-112434@lists.php.net to get a copy of this message | ||
ID: 41336
User updated by: jblaguarigue at worldonline dot fr
Reported By: jblaguarigue at worldonline dot fr
-Status: Feedback
+Status: Closed
Bug Type: GD related
Operating System: Win XP
PHP Version: 5.2.2
Assigned To: pajoye
New Comment:
OK, it works.
Previous Comments:
------------------------------------------------------------------------
[2007-05-09 07:08:17] 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 06:41:05] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41336&edit=1