#18879 [Opn->Csd]: GD2 can't open fontfiles

From: Date: Tue, 13 Aug 2002 13:26:06 +0000
Subject: #18879 [Opn->Csd]: GD2 can't open fontfiles
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16608@lists.php.net to get a copy of this message
ID: 18879 Updated by: edink@php.net Reported By: rehman@rehman.ch -Status: Open +Status: Closed Bug Type: GD related Operating System: windows 2000 PHP Version: 4.2.2 New Comment: 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(); Previous Comments: ------------------------------------------------------------------------ [2002-08-13 08:47:15] rehman@rehman.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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18879&edit=1

« previous php.bugs (#16608) next »