> From: andy [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 24, 2002 7:29 AM
> Subject: [PHP] freetype - could not open font problem
> I am trying to use freetype, but do always get the message
>
> Warning: Could not find/open font in test.php on line 18
>
> The font is available and ok. I double checked it.
>
> What could cause this error exept of the given reason? I am
> trapped ;-)
>
> Thanx for any help on that.
>
> Andy
When I've done this, I put the ttfs in /usr/local/fonts/ttf
Then I defined a const for the dir,
define('FONTDIR','/usr/local/font/ttf/')
And used concat to build the absolute path:
$font = FONTDIR . 'arial.ttf';
You can uses file_exists() to make sure it's not a permissions problem
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php