| 1 |
This directory contains supplementary documentation on GNU libplot, the |
| 2 |
drawing library on which several of the executables in the GNU plotting |
| 3 |
utilities ("plotutils") package, such as graph, plot, tek2plot, plotfont, |
| 4 |
and hersheydemo, are based. |
| 5 |
|
| 6 |
./colors.txt: A listing of the color names recognized by libplot, |
| 7 |
and hence by each of the above plotting utilities. |
| 8 |
A 24-bit RGB representation for each color is given. |
| 9 |
|
| 10 |
For example, you may pop up a simple graph, |
| 11 |
drawn in a chocolate color, by typing the command |
| 12 |
|
| 13 |
echo 0 0 1 1 2 0 | graph -T X --frame-color chocolate |
| 14 |
|
| 15 |
This is because "chocolate" is one of the listed color |
| 16 |
names. In the 24-bit RGB scheme, "chocolate" means |
| 17 |
(210,105,30). The strength of each of R (red), G |
| 18 |
(green), and B (blue) is represented as an 8-bit |
| 19 |
quantity, i.e., an integer in the range 0..255. |
| 20 |
|
| 21 |
|
| 22 |
./h-fonts.txt: A listing of the 22 Hershey fonts supported by GNU |
| 23 |
libplot and executables based on it. |
| 24 |
|
| 25 |
|
| 26 |
Hershey fonts are vector ("stroked") fonts, in which each character is made |
| 27 |
up of thickened line segments. They can look good on high-resolution |
| 28 |
output devices (on which they have a hand-lettered appearance) and on |
| 29 |
medium-resolution output devices (where they may be competitive with other |
| 30 |
types of font). This is especially the case if anti-aliasing is used. |
| 31 |
|
| 32 |
To see a demo page illustrating the Hershey fonts, do |
| 33 |
|
| 34 |
hersheydemo -Tps > page.ps |
| 35 |
|
| 36 |
to produce the page in PS (Postscript format), or |
| 37 |
|
| 38 |
hersheydemo -Tsvg --pen-color blue > page.svg |
| 39 |
|
| 40 |
in SVG (scaled vector graphics) format. You can send the former to a |
| 41 |
printer, and display the latter from the command line by invoking on it, |
| 42 |
e.g., a Web browser such as firefox, or the `svgdisplay' or `display' |
| 43 |
executables. (They come respectively from KDE and the ImageMagick |
| 44 |
package.) The result should look good. If you do |
| 45 |
|
| 46 |
hersheydemo -TX --rotation 45 --bitmap-size 800x800 --bg-color brown |
| 47 |
|
| 48 |
to see the demo page (rotated) in a popped-up 800pixel-by-800pixel |
| 49 |
X window, the result may look less good, as your X display may not use |
| 50 |
anti-aliasing. That means that every pixel in the window will be either |
| 51 |
black or white, with no gradations that make characters more legible. |
| 52 |
|
| 53 |
The 22 Hershey fonts built into GNU libplot were assembled from glyphs in |
| 54 |
the large family of vector glyphs designed by Dr. Allen V. Hershey in the |
| 55 |
early days of computer graphics, beginning in the 1960s. His glyphs |
| 56 |
predate modern outline fonts, but are not just of historical interest. The |
| 57 |
demo page is taken from his 1972 article in Computer Graphics and Image |
| 58 |
Processing (vol. 1, no. 4, pp. 373-385). |
| 59 |
|
| 60 |
Plotting utilities such as `graph' can use Hershey fonts, as well as, |
| 61 |
e.g., such Postscript fonts as Times-Roman. By doing |
| 62 |
|
| 63 |
echo 0 0 1 1 2 0 | graph -T ps -F Times-Roman -L 'A Graph' > graph.ps |
| 64 |
echo 0 0 1 1 2 0 | graph -T ps -F HersheySerif -L 'A Graph' > graph.ps |
| 65 |
echo 0 0 1 1 2 0 | graph -T ps -F HersheyGothic-English -L 'A Graph' > graph.ps |
| 66 |
|
| 67 |
etc., you can generate graphs with labels and titles in various fonts. Use |
| 68 |
the --help-fonts option to get a list of fonts, which is |
| 69 |
output-format-specific (though Hershey fonts are supported in all output |
| 70 |
formats). |
| 71 |
|
| 72 |
The Hershey glyph repertory, built into GNU libplot, includes various |
| 73 |
symbols in addition to occidental and Japanese characters. Some symbol |
| 74 |
glyphs do not belong to any font. If the current font is a Hershey font, |
| 75 |
you may access any glyph by its number, even if it is not a character in |
| 76 |
the font, in the conventional sense. For instance, |
| 77 |
|
| 78 |
echo 0 0 1 1 2 0 | graph -T ps --font-name HersheyGothic-English -L '\#H0745\#H0745' > graph.ps |
| 79 |
|
| 80 |
would label the graph being drawn with a title line consisting of |
| 81 |
two fleurs-de-lys. That is because the fleur-de-lys is Hershey glyph #745. |
| 82 |
|
| 83 |
The following files are relevant to the Hershey glyph repertory built |
| 84 |
into GNU libplot. The |
| 85 |
|
| 86 |
./h-glyphs.txt: A high-level survey of the `occidental' Hershey glyphs, |
| 87 |
in great detail. Includes an extensive comparison with earlier |
| 88 |
(pre-GNU) distributions of the Hershey glyphs, and an explanation |
| 89 |
of how the glyph array was assembled. |
| 90 |
|
| 91 |
./hershey.bib: A bibliography, in BibTeX format, of publications |
| 92 |
dealing with the Hershey glyphs and with Allen Hershey's system for |
| 93 |
scientific typography, which was designed to use them. Most of the |
| 94 |
cited items are technical reports that are available from the |
| 95 |
U.S. National Technical Information Service (+1 703 487 4650). |
| 96 |
Stock numbers are given. |
| 97 |
|
| 98 |
./kana.txt: The encodings used for the Hershey Hiragana and Katakana |
| 99 |
(syllabic Japanese characters). These are part of the HersheyEUC |
| 100 |
font, but may also be accessed by number. |
| 101 |
|
| 102 |
./kanji.txt: The encoding of the 603 available Japanese Kanji |
| 103 |
(ideographic characters), and their meaning. These are part of the |
| 104 |
HersheyEUC font, but may also be accessed by number. |