x11, wxt, special characters, fonts etc

  • Follow


Dear all,
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-*-*-*-*-*-*-*-*-
iso10646-1;arial;times'

httpd # cat .Xdefaults
gnuplot*persist: on
gnuplot*background: grey95
gnuplot*textColor: black
gnuplot*borderColor: black
gnuplot*axisColor: black
gnuplot*line1Color: red
gnuplot*line2Color: green
gnuplot*line3Color: blue
gnuplot*line4Color: magenta
gnuplot*line5Color: cyan
gnuplot*line6Color: sienna
gnuplot*line7Color: orange
gnuplot*line8Color: coral


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 
log:
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,
Klaus

0
Reply klaus.dahlke (1) 11/2/2009 9:26:38 PM


0 Replies
574 Views

(page loaded in 0.029 seconds)

Similiar Articles:






7/19/2012 5:20:16 PM


Reply: