APPLICATION NOTE #153 USING THE HP FONTLOAD PROGRAM WITH XYWRITE Rev. 01 RELATED FILES: 3HP˙2DSOFT.PRN Hewlett-Packard sells a font download utility called FontLoad which works with its LaserJet and LaserJet II printers. It also works with true HP compatibles such as the Kyocera and Okidata Laserline. For XyWrite's purposes, FontLoad is used to download a specific set of soft fonts to the printer. REQUIRED HARDWARE/SOFTWARE To use FontLoad, you need the FontLoad software package, an HP LaserJet Plus or 500 Plus, LaserJet Series II, LaserJet 2000, or any laser printer that is fully compatible with the LaserJet. You also need a disk containing the HP soft fonts you want to use. FontLoad only supports HP soft fonts. Finally, XyWrite's HP soft font printer file (3HP˙2DSOFT.PRN) must contain PT tables that implement the fonts you want to use. CREATING A NEW PT TABLE PT (Print Type) tables enable XyWrite to actually use the fonts once the proper codes are written into the file. The PT table numbers correspond to the value you use with the PT (Print Type) formatting command. For example, if you issue the command: F5pt 1 XyWrite looks at the table labeled PT=1 in the current printer file to determine which font to use. The printer file 3HP-SOFT.PRN contains four PT tables (Courier, Line Printer, 10-point Times, and 14-point Helvetica). To add a PT table to support another HP soft font, say 9-point Helvetica, Helvetica Bold, and Helvetica Italic: 1. Call the printer file to the screen. Type: F5call 3hp-soft.prn 2. In the notes section of the printer file, locate the name of the font you want to use (e.g., 9HELV, 9HELV-BOLD, 9HELV-ITALIC). You must use these predefined names in the PT table, because they correspond to the font tables already set up in the printer file. 3. Page down until you see the PT tables. 4. Define the last PT table. For example, if PT=4 is the last table in the section: Move your cursor to the beginning of the PT=4 line and press F1. Move your cursor to the end of the PT table (marked by a semicolon and a carriage return) and press F1. Result: This defines the table PT=4 as a block. 5. Press: F7 (to copy the block) 6. Press: F3 (to release the defined block) 7. In the new table, change the 4 in PT=4 to the next available number (e.g., PT=5). 8. Change the font name in the new table to the name identified in step 2. It is not necessary to change either the modes (MD NM, etc.) or the attributes (underline, etc.) in the PT table. An example of a completed PT table is shown below. PT=5 MD NM+9HELV MD BO+9HELV-BOLD MD UL+9HELV+UNDERLINE MD RV+9HELV+FORMS MD BU+9HELV-BOLD+UNDERLINE MD BR+9HELV-ITALIC MD SU+9HELV+SUPERSCRIPT MD SD+9HELV+SUBSCRIPT ; If you want a blank line between PT tables, make sure you put a semicolon on the blank line as shown above. 9. Store and load the printer file. Result: You are now ready to use the 9-point Helvetica soft font you downloaded with FontLoad. STARTING FONTLOAD To start FontLoad, follow this procedure: 1. Install FontLoad according to the instructions in the Using FontLoad manual. 2. At the DOS prompt, type: FLOAD Result: The FontLoad screen appears. 3. Follow the instructions in the Using FontLoad manual for choosing a new setup and downloading fonts. (See Notes #2 and #3.) Note #1 LaserJet Control Panel. The control panel on the LaserJet Series II provides a printing menu that allows you to set values for five printing options. To use the XyWrite LaserJet printer files described in this application note, be sure each of these options is set to its default value, as follows: No. of copies 01 Manual feed OFF Font Source I Font Number 00 Form Length 060 If you change these values on the control panel, XyWrite's printer files will not work correctly. Instead, you need to make such changes by modifying the software coding in the printer file. Please refer to Application Notes 114 and 137 for details. Note #2 Font ID. FontLoad automatically assigns font ID numbers. Always use the assigned numbers rather than specifying your own. Note #3 Download Status. FontLoad allows you to assign a temporary or permanent status to fonts. Always use the permanent.