Re: Telling GD2 Where Fonts Are
| From: | Chris Garaffa | Date: | Fri, 28 Nov 2003 06:01:10 +0000 |
| Subject: | Re: Telling GD2 Where Fonts Are | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171244@lists.php.net to get a copy of this message | ||
On Nov 27, 2003, at 9:12 PM, stiano@optonline.net wrote:
The line of PHP code that gives this info goes like this--at least the way I unsuccessfully put it: putenv('GDFONTPATH=Macintosh HD/Fonts $fontname = 'arial.ttf'Steve, I've never used fonts with GD before, but on the surface, this looks to be a path issue. Assuming that "Macintosh HD" is the volume you boot up OS X from, try changing the first line to: putenv('GDFONTPATH=/Fonts/'); because what you see as "Macintosh HD" is actually / to the UNIX layer of the OS. Hope this helps! -- Chris Garaffa chris@nilzero.com