I took the plunge today and installed JPGraph according to the excellent instructions provided by Tim Hanko. I’ve gone over everything several times and cannot get it to work. Just using the basic package and calling one of their examples I get the error message below. Comments in the E-Rice forum also lead me to believe that TrueType support is not installed there, and info on the JPGraph forum indicates that it’s absolutely required.
So, if anyone has been able to use this package on E-Rice servers, please let me know what I’m missing. If not, I guess I’ll have to pack it in.
I tried the same one as you mentioned and it works fine. I had picked bkgimgflagex4.php at random to try and it fails. Apparently some absolutely require TTF while others don’t. At least now I know where I stand, but I was really hoping to use Broadstairs’ package and they require it.
You can make it work if you play with the fonts, in the case of bkgimgflagex4.php for a quick test I just changed the FF_ARIAL to FF_FONT1 and here it is on e-rice
The use of internal fonts work without the need for the FreeType support but does limit the number of fonts you can use like some of the JpGraph examples.
I would think that E-Rice might entertain a feature request to add that function to PHP though.
I don’t think that is going to help since the error message indicated in the first posting was that support for TTF was not “compiled” into PHP. You need to recompile the PHP package to get that to happen.
I’ve not seen the output of something like phpinfo though so the error could have been erroneous.