ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  don`t display character.
Posted by Jonghyeon on Nov-26-2011 21:49
i make ChartDirector python chart.

ex) python xzonecolor.py

make very good chart.

then, i want auto make chart.

so, i make shell script this command. and register cron job.

but don`t display character.

if you know this state, teaching me plz.

  Re: don`t display character.
Posted by Jonghyeon on Nov-26-2011 21:52
Attachments:
attach chart.
test_chart.png

  Re: don`t display character.
Posted by Peter Kwan on Nov-28-2011 23:06
Hi Jonghyeon,

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".

The most likely reason is that either you have not installed the fonts, or the fonts are not readable by your cron job. (Note: your cron job may use a different security setting from you shell account, so even you can access the fonts, it does not mean that the cron job can access the fonts.)

To solve the problem, make sure there is a fonts subdirectory in the same directory as "libchartdir.so". If you have copied "ChartDirector for Python" to multiple places, please make sure the fonts subdirectory is copied to the same places as well. Also, for testing, please make sure the fonts subdirector and all its contents are readable by everyone. This can avoid issues related to security.

To further diagnose the problem, please include the following code in your cron job:

s = getBootLog()
f = open("/tmp/aaa.txt", "w")
f.write(s)
f.close()

The above should create a text file "/tmp/aaa.txt" (make sure the "/tmp" subdirectory exist and is readable/writable by the cron job), and it should contain the result of the "boot log". The "boot log" will include a font loading test that informs about the cause of the problem. Please let me know what is the result.

Regards
Peter Kwan