I have a problem with setting the proper fonts to obtain special
characters like the Euro sign or the degree sign.
Background: Gnuplot is called from a ruby on rails application (ROR app),
Apache is the web server in use. Apache is started during boot and runs
as user/group apache. Apache has a home directory /home/httpd in which
the .gnuplot file and .Xdefaults are located:
httpd # cat .gnuplot
set encoding utf8
set terminal x11 font 'mbfont:-adobe-helvetica-bold-r-*-*-*-*-*-*-*-*-
httpd # cat .Xdefaults
I myself log on as a normal user. When accessing the ROR app, the ruby
code and the page rendering works fine (no surprise). When I now call an
action to have some data plotted, the following happens:
if the terminal is set in the .gnuplot file to
'set term wxt'
no plot window comes up and the following error message is in the Apache
Failed to initialize wxWidgets.
When using 'set term x11' or the above default from .gnuplot, a plot
window pops up as defined (e.g. with a light gray background) but the
special characters like the Euro sign are not printed, instead some odd
characters are shown.
When simply restarting Apache (su - root) while X-windows is up and
running, the labels with the special characters are plotted just nicely
for an x11 terminal. But the wxt terminal still doesn't work, the same
error occurs: Failed to initialize wxWidgets.
I would be happy if you give some more detailed information on how the
fonts are retrieved under X11 and how the initlizing of teh wxWidgets is
done to preferentially use wxt.
Thanks and best regards,