Koozali.org: home of the SME Server

font not found while file exists.

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
font not found while file exists.
« 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??
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline pfloor

  • *****
  • 889
  • +1/-0
font not found while file exists.
« Reply #1 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
In life, you must either "Push, Pull or Get out of the way!"

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
Works now
« Reply #2 on: July 11, 2007, 03:15:10 PM »
Ok,

I just moved the fonts into the www directory and it works.
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline alm7100

  • *
  • 8
  • +0/-0
Re: font not found while file exists.
« Reply #3 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