|
Text missing from charts when perl libraries are used |
Posted by T Patel on Oct-19-2011 23:00 |
|
Hi,
I've been using few Perl scripts for past 2 years. For some strange reason as of this Monday none of the text objects are displayed (lable, title, legend). I've executed the cdinfo.php along with few other php scripts on the server and I receive expected results (txt and charts). None of the perl demo examples display text objects.
Please advise in possible debug steps.
Thanks,
T |
Re: Text missing from charts when perl libraries are used |
Posted by Peter Kwan on Oct-20-2011 00:13 |
|
Hi T Patel,
The reason is probably because the fonts are not available or accessible for the Perl edition of ChartDirector.
Are you using Linux or FreeBSD or Solaris? For these OS, there is no standard location for fonts (as opposed to Windows and Mac OS X, which has standard location for fonts). So ChartDirector will use its own "fonts" subdirectory, which is located in the same directory that contains "libchartdir.so".
Your "ChartDirector for Perl" and "ChartDirector for PHP" could be installed in different directories. In this case, there should be two "libchartdir.so" and two fonts subdirectory.
The charts will have no font if:
(a) The fonts subdirectory is not installed. For example, for Perl, the ChartDirector can be installed by copying "everything" in "ChartDirector/lib" to any directory in the Perl module search path. Sometimes people will forget to copy the fonts subdirectory.
or
(b) The fonts subdirectory is not accessible (eg. due to security restrictions). For testing, please make sure the fonts subdirector and all its contents are readable by everyone.
To further diagnose the problem, please try the script "ChartDirector/perldemo_cgi/cdinfo.pl". It will perform a font loading test and inform you what is the cause of the problem.
Hope this can help.
Regards
Peter Kwan |
|