RE: [PHP] freetype - could not open font problem

From: Date: Tue, 24 Sep 2002 12:39:35 +0000
Subject: RE: [PHP] freetype - could not open font problem
Groups: php.general 
Request: Send a blank email to php-general+get-117402@lists.php.net to get a copy of this message
> From: andy [mailto:news.letters@gmx.de] > 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

« previous php.general (#117402) next »