Re: [PHP] Telling GD2 Where Fonts Are

From: Chris Garaffa (chris_at_nilzero.com)
Date: 11/28/03


Date: Fri, 28 Nov 2003 01:01:10 -0500
To: 'php-general@lists.php.net' <php-general@lists.php.net>

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


Relevant Pages