[PHP] Telling GD2 Where Fonts Are

2003-11-28 Thread [EMAIL PROTECTED]
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

Re: [PHP] Telling GD2 Where Fonts Are

2003-11-28 Thread Pavel Jartsev
[EMAIL PROTECTED] wrote: Tom, when I switch code to: putenv('GDFONTPATH=/Macintosh HD/Fonts/'); $font = Macintosh HD/Fonts./'arial.ttf'; ... 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?

[PHP] Telling GD2 Where Fonts Are

2003-11-27 Thread [EMAIL PROTECTED]
Working on a Macintosh G3 PowerBook running OS 10.2 and PHP 4.3.0 with GD2 ... I'm having trouble telling GD2 where the font I'm using in a PHP exercise (Chapter 19 of the 2nd edition of the Welling/Thomson book), arial.ttf, resides. The font is obviously in a folder on my hard drive, the path

Re: [PHP] Telling GD2 Where Fonts Are

2003-11-27 Thread Tom Rogers
Hi, Friday, November 28, 2003, 12:12:57 PM, you wrote: son Working on a Macintosh G3 PowerBook running OS 10.2 and PHP 4.3.0 with GD2 son ... son I'm having trouble telling GD2 where the font I'm using in a PHP exercise son (Chapter 19 of the 2nd edition of the Welling/Thomson book), arial.ttf,

Re: [PHP] Telling GD2 Where Fonts Are

2003-11-27 Thread Chris Garaffa
On Nov 27, 2003, at 9:12 PM, [EMAIL PROTECTED] 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