|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-05-15 18:14 UTC] nicolaasuni at tiscali dot it
the metod imagettfbbox return: Could not find/open font... using the php_gd2.dll the same method work fine with php_gd.dll and with php_gd2.dll of the previous PHP release (4.2.0) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 16:00:01 2025 UTC |
On win2K + php 4.2.1 + jpgraph, i have : DEFINE("TTF_DIR","/WINNT/fonts/"); but the function : function File($fam,$style=FS_NORMAL) has an incorrect test : if( !file_exists($f) ) remove this test and the error message disappear.Ok, now I've undestand how to solve this problem: if you use GD2 you must specify: putenv("GDFONTPATH=/path/to/font/"); //set GD library font path for GD2 also you have to call the font on function with only the name without extension and path (e.g.: 'arial')