home *** CD-ROM | disk | FTP | other *** search
- Oct. 13, 1988 13:25
- Dan Ross
- 1346 River St.
- Santa Cruz, CA 95060
- (408)426-4197
-
-
- Laser printer font
-
- This diskette contains a proportional-pitch font in portrait orientation, for
- use in laser printers compatible with the H-P LaserJet2.
-
- DEAR TEACHER is a 27-by-(approximately)21 font with an additional 8 rows for
- descenders, thus occupying a 35-by-21 cell of pixels. It includes the
- printable subset of the ASCII character set, except that all ASCII values that
- represent lower case letters, actually will print upper case letters.
-
- The size of the font is appropriate for printing 7.5 lines per inch, with
- approximately 84 characters (maximum) per line.
-
- The appearance of the font must be seen to be appreciated.
-
- All the software for developing or modifying the font, are included in both
- source and executable form in this diskette. All code is written in the
- language Microsoft C version 5.10.
-
- FILES
- -----
-
- TEACHER.LOD containing the LaserJet2 commands and font to be downloaded for
- exclusive use of this font only.
- TEACHER.SFP containing the LaserJet2 commands and font to be downloaded for
- shared use of this font along with other fonts.
- TEACHER.BAT for downloading the font from file TEACHER.LOD.
- TEACHER.TXT containing the character patterns as drawn by a text editor.
- TEACH2C.C containing the source code of TEACH2C.EXE.
- TEACH2C.EXE for converting the character patterns into initialization data
- for an array declaration in the C language.
- TEACHER.C containing the initialization data created by TEACH2C.EXE.
- TCH2LOAD.C containing the source code of TCH2LOAD.EXE.
- TCH2LOAD.EXE for generating file TEACHER.LOD.
- TCH2SFP.C containing the source code of TCH2SFP.EXE.
- TCH2SFP.EXE for generating file TEACHER.SFP.
- CL_TCH2C.BAT for compiling and linking TEACH2C.EXE.
- TCH2C.LNK for linking TEACH2C.EXE.
- CL_TCH2L.BAT for compiling and linking TCH2LOAD.EXE.
- TCH2LOAD.LNK for linking TCH2LOAD.EXE.
- CL_TCH2S.BAT for compiling and linking TCH2SFP.EXE.
- TCH2SFP.LNK for linking TCH2SFP.EXE.
- TEST.TXT containing some example text to be printed, which will
- demonstrate the font.
- EDITING NEEDED
- --------------
-
- The *.BAT files contain directory references that are appropriate to my own
- computer. You undoubtedly will want to edit these files, to change the
- directory references.
-
- HOW TO USE THE FONT
- -------------------
-
- Copy all the files from the distribution diskette into hard disk subdirectory
- C:\LASER.
-
- This section describes how to print exclusively with font DEAR TEACHER, using
- file TEACHER.LOD. This section does not describe how to install font DEAR
- TEACHER into some other word processing package. Refer to the instructions for
- your word processor on how to perform that installation, and use file
- TEACHER.SFP.
-
- Use the DOS COPY command, or file TEACHER.BAT, to copy file TEACHER.LOD to
- the laser printer. In addition to downloading the font, file TEACHER.LOD
- contains laser printer commands to reset the laser printer, to make the font
- permanent, to make it the primary selected font, and to set spacing appropriate
- to the font. DEAR TEACHER has font ID number 12.
-
- EXAMPLE
- -------
-
- In this example, source code file TEST.TXT will be printed in font DEAR
- TEACHER.
-
- Select the root directory of hard disk C:
- C:
- CD \
- If hard disk subdirectory C:\LASER does not already exist, create it:
- MKDIR \LASER
- Make it be the current directory:
- CD \LASER
- Mount the distribuition diskette on drive A:, then copy all files:
- COPY/V A:*.*
- Remove the distribution diskette from the computer. Turn on the printer and
- let it warm up. Then download font DEAR TEACHER with the aid of the BATCH
- file:
- TEACHER
- Print file TEST.TXT using a standard PC-DOS PRINT statement:
- PRINT TEST.TXT
-
- MORE ON HOW TO USE THE FONT
- ---------------------------
-
- Downloading file TEACHER.SFP is not sufficient for subsequent use of the font.
- It also is necessary to set the Vertical Motion Index of the laser printer.
- The proper vertical spacing is 7.5 lines per inch, or 40 pixels from the top of
- one line to the top of the next line, or (6.4)/48 inches per line. The
- Vertical Motion Index is set by the Escape sequence:
- e&l6.4C
- where the lower case letter "e" represents the Escape character, and all the
- other characters represent themselves. Observe that the character after the
- ampersand "&" is a lower case letter "L".
-
- HOW TO CREATE OR MODIFY THE FONT
- --------------------------------
-
- File TEACHER.TXT contains the character patterns as drawn by a text editor.
- The characters appear in their order within the ASCII character set, starting
- with character Exclamation Mark "!". Each character is drawn in a cell
- enclosed by quotation marks. Inside the cell there must be only Asterisk and
- Space characters, no Tab characters. All patterns must contain at least 1
- Asterisk. Separating each pattern are: an empty line (no Spaces), a line of
- 23 dashes matching the (nominal) cell width, and another empty line. I used
- the text editor programs PCWRITE and (Microsoft) M to draw the patterns.
- PCWRITE does not leave Tab characters in the text it edits. M can be
- configured so as not to leave Tab characters.
-
- Program TEACH2C reads the character patterns from file TEACHER.TXT, and
- converts them to array initialization data for use in any C language program.
- The output is written to file TEACHER.C.
-
- The source code of program TCH2LOAD contains an array declaration, and an
- #include "TEACHER.C"
- statement to initialize the array with the character patterns. Program
- TCH2LOAD must be recompiled whenever the character patterns are changed. Then
- when TCH2LOAD is executed, it generates data file TEACHER.LOD. Similarly,
- program TCH2SFP generates data file TEACHER.SFP.
-
- Caution: Microsoft C version 5.0 has a bug in the use of 8086 register ES.
- In order to avoid the bug, I do not use version 5.0. The bug has been fixed in
- version 5.1. If only version 5.0 is available to you, you MIGHT avoid the bug
- by disabling compiler optimization.
-
- All Microsoft C programs in this diskette may be compiled using the small
- memory model.
-
- I have organized my C library as individual small files. Therefore all the
- .LNK files contain /NOD parameters and name each library file separately.
-
- To change the font ID number, change the definition at the beginning of file
- TCH2LOAD.C, recompile, and rerun program TCH2LOAD.
-
- REWARDS
- -------
-
- I am submitting this font as part of my contribution to the welfare of the
- computing community. It is not to be used for direct commercial advantage,
- unless it is included in some other product which has significant value
- added. There may be a nominal service charge for copying and redistributing
- this diskette.
- Daniel Ross
-
-