Menu

#9 GIF/PNG driver supports Freetype2

closed-duplicate
None
5
2001-10-11
2001-04-12
No

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.

good luck!

I'm happy now with i18n support and truetype fonts in gnuplot! :-)

Discussion

  • Erik Pischel

    Erik Pischel - 2001-04-12

    patchfile for using gd 1.8.3 and freetype 2.0.x with gnuplot/gif driver

     
  • Hans-Bernhard Broeker

    • assigned_to: nobody --> broeker
    • status: open --> closed-duplicate
     
  • Hans-Bernhard Broeker

    Logged In: YES
    user_id=27517

    I'm closing this one --- it's been superseded by the work of
    Ethan Merritt, which see.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.