hi,
please CC me in your answers.
system info (for formality):
mandrakelinux 10.0
linux 2.6.7 (from scratch)
glibc-2.3.3-10mdk
gcc-3.3.2-6mdk
libfreetype6-devel-2.1.8-1plf
libpng3-1.2.5-10mdk
libgd and gnuplot was compiled by myself (but the problem was in
original mandrake gnuplot-3.7.3 and libgd 2.0.15; with my
gnuplot-4.0.0 and libgd 2.0.28)
Now I have
$ gdlib-config --version --features
2.0.28
GD_XPM GD_JPEG GD_FREETYPE GD_PNG GD_GIF
gnuplot from the cvs (20041009). configured with
Enable generation of JPEG files
Enable generation of GIF files
Enable generation of PNG files
using gd driver
Enable TTF fonts with gd driver
OK. The description of the problem:
I'm trying to generate png/jpeg files with russian titles and it
doesn't
work. I can see letters but they are in wrong encoding (latin1
(iso-8859-1)
but not right koi8-r)
Simple examples:
#!/usr/local/bin/gnuplot
set encoding koi8r
set term postscript
set output "test.ps"
set title "Синусоида/Sinusoid"
plot sin(x)
And i can see russian glyphs title in gv. But i need png/jpeg.
The following example doesn't work
#!/usr/local/bin/gnuplot
set encoding koi8r
set term png font "/mnt/win_c/windows/Fonts/arial.ttf"
set output "test.png"
set title "Синусоида/Sinusoid" font
"/mnt/win_c/windows/Fonts/arial.ttf,25"
plot sin(x)
I get test.png with iso8859-1, but the font contains russian
glyphs (I can view them in kfontview)
My question: is it problem of libgd or gnuplot? And is it
possible to fix it?
|