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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rehman at rehman dot ch
New email:
PHP Version: OS:

 

 [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: Thu May 02 20:01:31 2024 UTC