php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18879 GD2 can't open fontfiles
Submitted: 2002-08-13 08:47 UTC Modified: 2002-08-13 09:26 UTC
From: rehman at rehman dot ch Assigned:
Status: Closed Package: GD related
PHP Version: 4.2.2 OS: windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
5 + 42 = ?
Subscribe to this entry?

 
 [2002-08-13 08:47 UTC] rehman at rehman dot ch
I activated php_gd2.dll in php ini instead of the php_gd.dll 
the the following commands will fail:
$charInf = ImageTTFBBox(18, 0, "c:\\path to ...\\arial.ttf", "hello world");

with php_gd.dll  it works fine

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-13 09:26 UTC] edink@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.

Or you can use the following workaround:

putenv("GDFONTPATH=c:\\winnt\\fonts");

then use font name without extension (eg. "arial") in your call to ImageTTFBBox();

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 09:01:32 2024 UTC