hershey.readme 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. Hershey fonts for Ghostscript
  2. This file, unlike the rest of Ghostscript, consists entirely of information
  3. copied from public sources. It therefore is not covered by the Ghostscript
  4. copyright or license: it is in the public domain.
  5. For other information, see the Ghostscript overview. You can also read about
  6. Ghostscript fonts in general.
  7. Mod.sources: Volume 4, Issue 42
  8. Submitted by: pyramid!octopus!pete (Pete Holzmann)
  9. This is part 1 of five parts of the first Usenet distribution of
  10. the Hershey Fonts. See the README file for more details.
  11. Peter Holzmann, Octopus Enterprises
  12. USPS: 19611 La Mar Court, Cupertino, CA 95014
  13. UUCP: {hplabs!hpdsd,pyramid}!octopus!pete
  14. Phone: 408/996-7746
  15. This distribution is made possible through the collective encouragement
  16. of the Usenet Font Consortium, a mailing list that sprang to life to get
  17. this accomplished and that will now most likely disappear into the mists
  18. of time... Thanks are especially due to Jim Hurt, who provided the packed
  19. font data for the distribution, along with a lot of other help.
  20. This file describes the Hershey Fonts in general, along with a description of
  21. the other files in this distribution and a simple re-distribution restriction.
  22. USE RESTRICTION:
  23. This distribution of the Hershey Fonts may be used by anyone for
  24. any purpose, commercial or otherwise, providing that:
  25. 1. The following acknowledgements must be distributed with
  26. the font data:
  27. - The Hershey Fonts were originally created by Dr.
  28. A. V. Hershey while working at the U. S.
  29. National Bureau of Standards.
  30. - The format of the Font data in this distribution
  31. was originally created by
  32. James Hurt
  33. Cognition, Inc.
  34. 900 Technology Park Drive
  35. Billerica, MA 01821
  36. (mit-eddie!ci-dandelion!hurt)
  37. 2. The font data in this distribution may be converted into
  38. any other format *EXCEPT* the format distributed by
  39. the U.S. NTIS (which organization holds the rights
  40. to the distribution and use of the font data in that
  41. particular format). Not that anybody would really
  42. *want* to use their format... each point is described
  43. in eight bytes as "xxx yyy:", where xxx and yyy are
  44. the coordinate values as ASCII numbers.
  45. *PLEASE* be reassured: The legal implications of NTIS' attempt to control
  46. a particular form of the Hershey Fonts *are* troubling. HOWEVER: We have
  47. been endlessly and repeatedly assured by NTIS that they do not care what
  48. we do with our version of the font data, they do not want to know about it,
  49. they understand that we are distributing this information all over the world,
  50. etc etc etc... but because it isn't in their *exact* distribution format, they
  51. just don't care!!! So go ahead and use the data with a clear conscience! (If
  52. you feel bad about it, take a smaller deduction for something on your taxes
  53. next week...)
  54. The Hershey Fonts:
  55. - are a set of more than 2000 glyph (symbol) descriptions in vector
  56. ( <x,y> point-to-point ) format
  57. - can be grouped as almost 20 'occidental' (english, greek,
  58. cyrillic) fonts, 3 or more 'oriental' (Kanji, Hiragana,
  59. and Katakana) fonts, and a few hundred miscellaneous
  60. symbols (mathematical, musical, cartographic, etc etc)
  61. - are suitable for typographic quality output on a vector device
  62. (such as a plotter) when used at an appropriate scale.
  63. - were digitized by Dr. A. V. Hershey while working for the U.S.
  64. Government National Bureau of Standards (NBS).
  65. - are in the public domain, with a few caveats:
  66. - They are available from NTIS (National Technical Info.
  67. Service) in a computer-readable from which is *not*
  68. in the public domain. This format is described in
  69. a hardcopy publication "Tables of Coordinates for
  70. Hershey's Repertory of Occidental Type Fonts and
  71. Graphic Symbols" available from NTIS for less than
  72. $20 US (phone number +1 703 487 4763).
  73. - NTIS does not care about and doesn't want to know about
  74. what happens to Hershey Font data that is not
  75. distributed in their exact format.
  76. - This distribution is not in the NTIS format, and thus is
  77. only subject to the simple restriction described
  78. at the top of this file.
  79. Hard Copy samples of the Hershey Fonts are best obtained by purchasing the
  80. book described above from NTIS. It contains a sample of all of the Occidental
  81. symbols (but none of the Oriental symbols).
  82. This distribution:
  83. - contains
  84. * a complete copy of the Font data using the original
  85. glyph-numbering sequence
  86. * a set of translation tables that could be used to generate
  87. ASCII-sequence fonts in various typestyles
  88. * a couple of sample programs in C and Fortran that are
  89. capable of parsing the font data and displaying it
  90. on a graphic device (we recommend that if you
  91. wish to write programs using the fonts, you should
  92. hack up one of these until it works on your system)
  93. - consists of the following files...
  94. hershey.doc - details of the font data format, typestyles and
  95. symbols included, etc.
  96. hersh.oc[1-4] - The Occidental font data (these files can
  97. be catenated into one large database)
  98. hersh.or[1-4] - The Oriental font data (likewise here)
  99. *.hmp - Occidental font map files. Each file is a translation
  100. table from Hershey glyph numbers to ASCII
  101. sequence for a particular typestyle.
  102. hershey.f77 - A fortran program that reads and displays all
  103. of the glyphs in a Hershey font file.
  104. hershey.c - The same, in C, using GKS, for MS-DOS and the
  105. PC-Color Graphics Adaptor.
  106. Additional Work To Be Done (volunteers welcome!):
  107. - Integrate this complete set of data with the hershey font
  108. typesetting
  109. program recently distributed to mod.sources
  110. - Come up with an integrated data structure and supporting routines
  111. that make use of the ASCII translation tables
  112. - Digitize additional characters for the few places where non-ideal
  113. symbol substitutions were made in the ASCII translation
  114. tables.
  115. - Make a version of the demo program (hershey.c or hershey.f77) that
  116. uses the standard Un*x plot routines.
  117. - Write a banner-style program using Hershey Fonts for input and
  118. non-graphic terminals or printers for output.
  119. - Anything else you'd like!
  120. This file provides a brief description of the contents of the Occidental
  121. Hershey Font Files. For a complete listing of the fonts in hard copy, order
  122. NBS Special Publication 424, "A contribution to computer typesetting
  123. techniques: Tables of Coordinates for Hershey's Repertory of Occidental
  124. Type Fonts and Graphic Symbols". You can get it from NTIS (phone number is
  125. +1 703 487 4763) for less than twenty dollars US.
  126. Basic Glyph (symbol) data:
  127. hersh.oc1 - numbers 1 to 1199
  128. hersh.oc2 - numbers 1200 to 2499
  129. hersh.oc3 - numbers 2500 to 3199
  130. hersh.oc4 - numbers 3200 to 3999
  131. These four files contain approximately 19 different fonts in
  132. the A-Z alphabet plus greek and cyrillic, along with hundreds of special
  133. symbols, described generically below.
  134. There are also four files of Oriental fonts (hersh.or[1-4]). These
  135. files contain symbols from three Japanese alphabets (Kanji, Hiragana, and
  136. Katakana). It is unknown what other symbols may be contained therein, nor
  137. is it known what order the symbols are in (I don't know Japanese!).
  138. Back to the Occidental files:
  139. Fonts:
  140. Roman: Plain, Simplex, Duplex, Complex Small, Complex, Triplex
  141. Italic: Complex Small, Complex, Triplex
  142. Script: Simplex, Complex
  143. Gothic: German, English, Italian
  144. Greek: Plain, Simplex, Complex Small, Complex
  145. Cyrillic: Complex
  146. Symbols:
  147. Mathematical (227-229,232,727-779,732,737-740,1227-1270,2227-2270,
  148. 1294-1412,2294-2295,2401-2412)
  149. Daggers (for footnotes, etc) (1276-1279, 2276-2279)
  150. Astronomical (1281-1293,2281-2293)
  151. Astrological (2301-2312)
  152. Musical (2317-2382)
  153. Typesetting (ffl,fl,fi sorts of things) (miscellaneous places)
  154. Miscellaneous (mostly in 741-909, but also elsewhere):
  155. - Playing card suits
  156. - Meteorology
  157. - Graphics (lines, curves)
  158. - Electrical
  159. - Geometric (shapes)
  160. - Cartographic
  161. - Naval
  162. - Agricultural
  163. - Highways
  164. - Etc...
  165. ASCII sequence translation files:
  166. The Hershey glyphs, while in a particular order, are not in an
  167. ASCII sequence. I have provided translation files that give the
  168. sequence of glyph numbers that will most closely approximate the
  169. ASCII printing sequence (from space through ~, with the degree
  170. circle tacked on at the end) for each of the above fonts:
  171. File names are made up of fffffftt.hmp,
  172. where ffffff is the font style, one of:
  173. roman Roman
  174. greek Greek
  175. italic Italic
  176. script Script
  177. cyril Cyrillic (some characters not placed in
  178. the ASCII sequence)
  179. gothgr Gothic German
  180. gothgb Gothic English
  181. gothit Gothic Italian
  182. and tt is the font type, one of:
  183. p Plain (very small, no lower case)
  184. s Simplex (plain, normal size, no serifs)
  185. d Duplex (normal size, no serifs, doubled lines)
  186. c Complex (normal size, serifs, doubled lines)
  187. t Triplex (normal size, serifs, tripled lines)
  188. cs Complex Small (Complex, smaller than normal size)
  189. The three sizes are coded with particular base line (bottom of a capital
  190. letter) and cap line (top of a capital letter) values for 'y':
  191. Size Base Line Cap Line
  192. Very Small -5 +4
  193. Small -6 +7
  194. Normal -9 +12
  195. (Note: some glyphs in the 'Very Small' fonts are actually 'Small')
  196. The top line and bottom line, which are normally used to define vertical
  197. spacing, are not given. Maybe somebody can determine appropriate
  198. values for these!
  199. The left line and right line, which are used to define horizontal spacing,
  200. are provided with each character in the database.
  201. Format of Hershey glyphs:
  202. 5 bytes - glyphnumber
  203. 3 bytes - length of data length in 16-bit words including left&right numbers
  204. 1 byte - x value of left margin
  205. 1 byte - x value of right margin
  206. (length*2)-2 bytes - stroke data
  207. left&right margins and stroke data are biased by the value of the letter 'R'
  208. Subtract the letter 'R' to get the data.
  209. e.g. if the data byte is 'R', the data is 0
  210. if the data byte is 'T', the data is +2
  211. if the data byte is 'J', the data is -8
  212. and so on...
  213. The coordinate system is x-y, with the origin (0,0) in the center of the
  214. glyph. X increases to the right and y increases *down*.
  215. The stroke data is pairs of bytes, one byte for x followed by one byte for y.
  216. An 'R' in the stroke data indicates a 'lift pen and move' instruction.
  217. Public Domain. Distributed with Ghostscript 6.50, November 2000