home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / graf / dt-hp.zip / READ.ME < prev    next >
Text File  |  1988-10-13  |  7KB  |  161 lines

  1.                                         Oct. 13, 1988   13:25
  2.                                         Dan Ross
  3.                                         1346 River St.
  4.                                         Santa Cruz, CA 95060
  5.                                         (408)426-4197
  6.  
  7.  
  8.             Laser printer font
  9.  
  10. This diskette contains a proportional-pitch font in portrait orientation, for
  11. use in laser printers compatible with the H-P LaserJet2.
  12.  
  13. DEAR TEACHER is a 27-by-(approximately)21 font with an additional 8 rows for
  14. descenders, thus occupying a 35-by-21 cell of pixels.  It includes the
  15. printable subset of the ASCII character set, except that all ASCII values that
  16. represent lower case letters, actually will print upper case letters.
  17.  
  18. The size of the font is appropriate for printing 7.5 lines per inch, with
  19. approximately 84 characters (maximum) per line.
  20.  
  21. The appearance of the font must be seen to be appreciated.
  22.  
  23. All the software for developing or modifying the font, are included in both
  24. source and executable form in this diskette.  All code is written in the
  25. language Microsoft C version 5.10.
  26.  
  27. FILES
  28. -----
  29.  
  30. TEACHER.LOD     containing the LaserJet2 commands and font to be downloaded for
  31.                     exclusive use of this font only.
  32. TEACHER.SFP     containing the LaserJet2 commands and font to be downloaded for
  33.                     shared use of this font along with other fonts.
  34. TEACHER.BAT     for downloading the font from file TEACHER.LOD.
  35. TEACHER.TXT     containing the character patterns as drawn by a text editor.
  36. TEACH2C.C       containing the source code of TEACH2C.EXE.
  37. TEACH2C.EXE     for converting the character patterns into initialization data
  38.                     for an array declaration in the C language.
  39. TEACHER.C       containing the initialization data created by TEACH2C.EXE.
  40. TCH2LOAD.C      containing the source code of TCH2LOAD.EXE.
  41. TCH2LOAD.EXE    for generating file TEACHER.LOD.
  42. TCH2SFP.C       containing the source code of TCH2SFP.EXE.
  43. TCH2SFP.EXE     for generating file TEACHER.SFP.
  44. CL_TCH2C.BAT    for compiling and linking TEACH2C.EXE.
  45. TCH2C.LNK       for linking TEACH2C.EXE.
  46. CL_TCH2L.BAT    for compiling and linking TCH2LOAD.EXE.
  47. TCH2LOAD.LNK    for linking TCH2LOAD.EXE.
  48. CL_TCH2S.BAT    for compiling and linking TCH2SFP.EXE.
  49. TCH2SFP.LNK     for linking TCH2SFP.EXE.
  50. TEST.TXT        containing some example text to be printed, which will
  51.                     demonstrate the font.
  52. EDITING NEEDED
  53. --------------
  54.  
  55. The *.BAT files contain directory references that are appropriate to my own
  56. computer.  You undoubtedly will want to edit these files, to change the
  57. directory references.
  58.  
  59. HOW TO USE THE FONT
  60. -------------------
  61.  
  62. Copy all the files from the distribution diskette into hard disk subdirectory
  63. C:\LASER.
  64.  
  65. This section describes how to print exclusively with font DEAR TEACHER, using
  66. file TEACHER.LOD.  This section does not describe how to install font DEAR
  67. TEACHER into some other word processing package.  Refer to the instructions for
  68. your word processor on how to perform that installation, and use file
  69. TEACHER.SFP.
  70.  
  71. Use the DOS COPY command, or file TEACHER.BAT, to copy file TEACHER.LOD to
  72. the laser printer.  In addition to downloading the font, file TEACHER.LOD
  73. contains laser printer commands to reset the laser printer, to make the font
  74. permanent, to make it the primary selected font, and to set spacing appropriate
  75. to the font.  DEAR TEACHER has font ID number 12.
  76.  
  77. EXAMPLE
  78. -------
  79.  
  80. In this example, source code file TEST.TXT will be printed in font DEAR
  81. TEACHER.
  82.  
  83. Select the root directory of hard disk C:
  84.     C:
  85.     CD \
  86. If hard disk subdirectory C:\LASER does not already exist, create it:
  87.     MKDIR \LASER
  88. Make it be the current directory:
  89.     CD \LASER
  90. Mount the distribuition diskette on drive A:, then copy all files:
  91.     COPY/V A:*.*
  92. Remove the distribution diskette from the computer.  Turn on the printer and
  93. let it warm up.  Then download font DEAR TEACHER with the aid of the BATCH
  94. file:
  95.     TEACHER
  96. Print file TEST.TXT using a standard PC-DOS PRINT statement:
  97.     PRINT TEST.TXT
  98.  
  99. MORE ON HOW TO USE THE FONT
  100. ---------------------------
  101.  
  102. Downloading file TEACHER.SFP is not sufficient for subsequent use of the font.
  103. It also is necessary to set the Vertical Motion Index of the laser printer.
  104. The proper vertical spacing is 7.5 lines per inch, or 40 pixels from the top of
  105. one line to the top of the next line, or (6.4)/48 inches per line.  The
  106. Vertical Motion Index is set by the Escape sequence:
  107.     e&l6.4C
  108. where the lower case letter "e" represents the Escape character, and all the
  109. other characters represent themselves.  Observe that the character after the
  110. ampersand "&" is a lower case letter "L".
  111.  
  112. HOW TO CREATE OR MODIFY THE FONT
  113. --------------------------------
  114.  
  115. File TEACHER.TXT contains the character patterns as drawn by a text editor.
  116. The characters appear in their order within the ASCII character set, starting
  117. with character Exclamation Mark "!".  Each character is drawn in a cell
  118. enclosed by quotation marks.  Inside the cell there must be only Asterisk and
  119. Space characters, no Tab characters.  All patterns must contain at least 1
  120. Asterisk.  Separating each pattern are:  an empty line (no Spaces), a line of
  121. 23 dashes matching the (nominal) cell width, and another empty line.  I used
  122. the text editor programs PCWRITE and (Microsoft) M to draw the patterns.
  123. PCWRITE does not leave Tab characters in the text it edits.  M can be
  124. configured so as not to leave Tab characters.
  125.  
  126. Program TEACH2C reads the character patterns from file TEACHER.TXT, and
  127. converts them to array initialization data for use in any C language program.
  128. The output is written to file TEACHER.C.
  129.  
  130. The source code of program TCH2LOAD contains an array declaration, and an
  131. #include "TEACHER.C"
  132. statement to initialize the array with the character patterns.  Program
  133. TCH2LOAD must be recompiled whenever the character patterns are changed.  Then
  134. when TCH2LOAD is executed, it generates data file TEACHER.LOD.  Similarly,
  135. program TCH2SFP generates data file TEACHER.SFP.
  136.  
  137. Caution:  Microsoft C version 5.0 has a bug in the use of 8086 register ES.
  138. In order to avoid the bug, I do not use version 5.0.  The bug has been fixed in
  139. version 5.1.  If only version 5.0 is available to you, you MIGHT avoid the bug
  140. by disabling compiler optimization.
  141.  
  142. All Microsoft C programs in this diskette may be compiled using the small
  143. memory model.
  144.  
  145. I have organized my C library as individual small files.  Therefore all the
  146. .LNK files contain /NOD parameters and name each library file separately.
  147.  
  148. To change the font ID number, change the definition at the beginning of file
  149. TCH2LOAD.C, recompile, and rerun program TCH2LOAD.
  150.  
  151. REWARDS
  152. -------
  153.  
  154. I am submitting this font as part of my contribution to the welfare of the
  155. computing community.  It is not to be used for direct commercial advantage,
  156. unless it is included in some other product which has significant value
  157. added.  There may be a nominal service charge for copying and redistributing
  158. this diskette.
  159.                                                 Daniel Ross
  160.  
  161.