
A patch of gnuplot for font setting and terminal type Linux (S)VGA

This patch was made against 'the most current official version of gnuplot'
gnuplot version 3.5 dated 'Fri Aug 27 05:21:33 GMT 1993'.

The modifications in this patch are:

1. terminal type Linux (S)VGA

An earlier version of Linux terminal was released by
Tommy Frandsen (frandsen@diku.dk) and Scott Heavner (sdh@po.cwru.edu),
using VGALIB 1.2 and extentions of Trident Super VGA card.
The VGA and Super VGA drivers for Linux has now evolved to SVGALIB
(maintained by Harm Hanemaayer, hhanemaa@cs.ruu.nl),
so I felt it useful to update the code to use the new features
and, more importantly, to rewrite some parts for safety reasons.
I have compiled it with GCC 2.4.5, lib 4.4.4 and SVGALIB 0.95, kernel 0.99.13,
throuth GCC 2.5.8, lib 4.5.21 and SVGALIB 1.03, kernel 1.0.
It's easy to set up: after applying the patch, configure the makefile with
option -lvga for terminal devices.

2. font setting for labels

An entry was added in termentry table, set_font(), which sets font for labels,
and an option, font 'name,size', was added to set label to specify the font.
I would prefer this universal method to special code within the text of labels,
which requires different label context for each specific driver, e.g. LaTeX.
The implementation is that in graphics.c and graph3d.c where labels are ploted,
if font is specified, set_font() is invoked before and after ploting the text
to set the font and restore the default font, no optimization implemented.
For most of the terminals, the entry set_font() was not used, except postscript
which I selected as a tester because I just needed to lpr to see the result,
and I can use it to plot figures with signs of sigma and pi in my manuscript
right away (the deadline is coming, and I have no alternative choices :)

3. locating gnuplot.gih for DOS version

A few lines were added to load gnuplot.gih from the dir where gnuplot.exe is.
The reason was quite amusing, after I reorganized my DOS patitions, the file
appeared to be missing, I spent half an hour to check everything only to find
I did not set that environment variable.

The patch file looks big (64 kb), the actual amount of information is not,
because for each entry in termentry table, five lines were added, which was
just replacing '}' by ', UNKNOWN_null}' except 'PS_set_font' for PS.
(Should I use -c1 or -c0 to avoid waste of bandwidth?)

The patch, together with makefile.lnx, linux.trm and this message (README)
are uploaded to ftp.dartmouth.edu and sunsite.unc.edu

David J. Liu, liu@phri.nyu.edu

