Re: Telling GD2 Where Fonts Are
| From: | Pavel Jartsev | Date: | Fri, 28 Nov 2003 13:49:05 +0000 |
| Subject: | Re: Telling GD2 Where Fonts Are | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171270@lists.php.net to get a copy of this message | ||
stiano@optonline.net 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?Because "Macintosh HD/Fonts" should be part of string, i.e.: $font = '/Macintosh HD/Fonts/arial.ttf'; This will eliminate "parse error", but does it solve Your actual problem, i don't know. Maybe You should set $font like Chris suggested (..."Macintosh HD" is actually / to the UNIX layer of the OS...): $font = '/Fonts/arial.ttf'; Hope that helps. -- Pavel a.k.a. Papi