#11 Another new PNG driver, new features

closed-duplicate
nobody
None
5
2001-10-09
2001-06-06
No

This driver is based on the old gif.trm, and uses Tom
Boutell's libgd library for output. libgd version >1.8
is advisable, to benefit from support for TrueType
fonts.

1) The driver options are a superset of both the old
GIF options and the old PNG options, so migration of
old gnuplot scripts should be easy.

2) Using the libgd library produces a better quality
PNG image than the old png.trm driver managed. I'm not
sure why, but it is very noticeable.

3) The driver now supports linewidth (which neither the
old PNG or GIF drivers did).

4) The driver supports TrueType fonts if appropriate
versions of libgd and freetype are installed. The
syntax is
set terminal png {transparent} {interlace}
{tiny | small | medium | large |
giant}
{font FONTNAME}
{size <x>,<y>}
{<color0> <color1> <color2> ...}

where FONTNAME is passed to libgd, which searches for a
file FONTNAME.ttf in the directory list specified by
the environmental variable GDFONTPATH. Further details
of font rendering can be found in the libgd docs.

Tested on Tru64 unix, Mandrake 8.0, Redhat 6.2
with libgd 1.8.4 and 2.0.1

./configure --enable-pm3d --with-gd
Ethan A Merritt
merritt@u.washington.edu

Discussion

  • Ethan Merritt

    Ethan Merritt - 2001-06-06

    New png.trm (requires libgd >= 1.8.4)

     
  • Hans-Bernhard Broeker

    • status: open --> closed-duplicate
     
  • Hans-Bernhard Broeker

    Logged In: YES
    user_id=27517

    Replaced by more recent version in another patch entry.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks