README 4.8 KB

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