Search code examples
phpmysqljpgraph

JpGraph font file error


I am trying to insert a graph after reading my DB.

The problem is that I get the following error: enter image description here

I already tried changing the permission in my jpgraph folder without succes. In my local computer it is working fine but once it is in the server it shows this error.

What am I doing wrong?


Solution

  • Have you checked that your server actually has the font file required? Try ls -l /usr/share/fonts/truetype/verdanab.ttf on your server to check. You probably need a font package called corefonts. On debian that's available throuh apt-get install ttf-mscorefonts-installer.