I had problems with the freetype patch that have been posted here.
It uses an already deprecated function (in gd1.8.4) that I had problems compiling.
this patch now uses the "new" function.
be aware that the gd library expects truetype fonts under /usr/share/fonts/truetype
by default (under linux). moreover, the gd library now outputs png instead of gif files.
(regardless of the term "gif driver" in gnuplot).
to apply the patch the other patch has already had to be applied.
let me outline the necessary steps to support truetype fonts with gnuplot:
(just to save you some time to figure it out yourself)
1. install zlib
2. install libpng
3. install freetype 2.0.2
4. install gd 1.8.4
in its makefile, enable -DHAVE_LIBFREETYPE und -lfreetype and add
-I/usr/local/include/freetype to INCLUDEDIRS
5. install truetype fonts to /usr/share/fonts/truetype. if you install times.ttf,
you can test gd's truetype support with gdtesttf (in the main dir of gd)
6. install gnuplot 3.7.1
use ./configure --with-gd=<path-to-gd-build-dir>
and be sure to apply the patch
after you run configure, add "-lfreetype" to the TERMLIBS variable in the makefile
then run make.
I'm happy now with i18n support and truetype fonts in gnuplot! :-)
Log in to post a comment.