Telling GD2 Where Fonts Are

From: Stiano_at_Optonline.Net (stiano_at_optonline.net)
Date: 11/28/03


To: php-general@lists.php.net
Date: Fri, 28 Nov 2003 07:36:27 -0500

Tom, when I switch code to:

 putenv('GDFONTPATH=/Macintosh HD/Fonts/');
 $font = Macintosh HD/Fonts./'arial.ttf';

per your saying:

 Give the full path to the font file, I do like this

  $font = $path_to_font.'/font.ttf';

I get:

Parse error: parse error, unexpected T_STRING in
/Users/stephent/Sites/php_mysql_web_dev/chapter_19/make_button.php on line
16

Whattaya make of that?

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .