Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: tropicalview on July 11, 2007, 05:18:01 AM

Title: font not found while file exists.
Post by: tropicalview on July 11, 2007, 05:18:01 AM
Dear all.

I have a font problem
by installing JPGRAPH you need some fonts.
they should be located in :

/usr/X11R6/lib/X11/fonts/truetype.


after a lot of *** i got them there like told me to in http://corefonts.sourceforge.net/

still the program does not work so i tried to access they're documentation and found:
http://www.aditus.nu/jpgraph/jpgraphfaq.php#F3.6

this script tells you how you can check if you have access to that file.
the result of that is:
FAIL: Can not read font file "/usr/X11R6/lib/X11/fonts/truetype/arial.ttf"."
(http://200.6.59.132/fonttest.php)

does anybody know why??
Title: font not found while file exists.
Post by: pfloor on July 11, 2007, 06:30:05 AM
Your error indicates that the file IS found but "can't be read" and this is to be expected.

PHP is only allowed to access files within the ibay itself unless you tell it otherwise.

You probably need to set a PHPBaseDir.  Start by reading this:

http://wiki.contribs.org/Useful_Commands#PHP_Related_Commands
Title: Works now
Post by: tropicalview on July 11, 2007, 03:15:10 PM
Ok,

I just moved the fonts into the www directory and it works.
Title: Re: font not found while file exists.
Post by: alm7100 on April 27, 2008, 05:26:12 PM
Hi

I have the same problem but i cat get it to work.

Please tell me what to do step by step