APPLICATION NOTE #160 USING THE HP SERIES II WITH S1 OR S2 CARTRIDGES Rev. 02 RELATED FILES: 3HP-S.PRN The XyWrite printer file, 3HP-S.PRN, supports the S1 (92290S1) and the S2 (92290S2) Font Cartridges, which can be used with either the Hewlett-Packard LaserJet Series II or the HP LaserJet 2000 printers. This application note describes using both cartridges. USING THE S1 FONT CARTRIDGE When you use the S1 cartridge, you have the option of accessing four different fixed pitch fonts each with 4 different symbol sets. The available fonts are: S1*12COUR Fixed, 12 pitch/ 10 point S1*12COUR-BOLD Fixed, 12 pitch/ 10 point S1*12COUR-ITALIC Fixed, 12 pitch/ 10 point S1*10COUR-ITALIC Fixed, 10 pitch/ 12 point The available symbol sets are Roman8 (8U), PC-8 full ASCII chart compliment (10U), PC-8 Danish/Norwegian (11U), and ECMA-94 Latin (0N). The printer file, 3HP-S.PRN, is set up to access the font with the standard Roman8 (8U) symbol set and allow the user to alter the font definitions to access any of the available symbol sets. For example, the font definition in the printer file for S1*12COUR is: FO:S1*12COUR ;FO<{ESC}&l0O{ESC}(10U{ESC}(s0p12h10v0s0b3T ;FO<{ESC}&l0O{ESC}(11U{ESC}(s0p12h10v0s0b3T ;FO<{ESC}&l0O{ESC}(0N{ESC}(s0p12h10v0s0b3T FO<{ESC}&l0O{ESC}(8U{ESC}(s0p12h10v0s0b3T VL=67 UW:12pitch US:ROMAN8 ;US:PCSYMBOL ET You can modify the font definition to access any of the other three symbol sets, PC-8 (10U); PC-8 D/N (11U); or ECMA-94 Latin (0N). ASCII characters 32 through 126 print the same for each symbol set. Characters 1 through 31 print using the 10U or 11U symbol sets with the PCSYMBOL substitution table. Characters 127 through 255 will print depending on the specific symbol set you are using. 1. Call the printer file to the display. Type: F5ca 3hp-s.prn 2. Search for the font definition you want to modify. Type: F5se /12cour/ 3. Place a semicolon in front of the current font definition for 8U. (The code for the symbol set is after the first opening/left parenthesis.) ;FO<{ESC}&l0O{ESC}(8U{ESC}(s0p12h10v0s0b3T 4. Place a semicolon in front of the line that says US:Roman8. ;US:ROMAN8 5. Remove the semicolon in front of the appropriate font definition. For example, if you want to switch to the PC-8 (10U) symbol set, remove the semicolon from the following line: FO<{ESC}&l0O{ESC}(10U{ESC}(s0p12h10v0s0b3T 6. If you choose either the 11U or the 10U symbol set font definition, remove the semicolon in front of the line that says US:PCSYMBOL. This allows you to print ASCII characters 1 through 31. US:PCSYMBOL For example, the entire font definition for S1*12COUR after modification to access the PC-8 full ASCII chart compliment (10U) now appears as follows: FO:S1*12COUR FO<{ESC}&l0O{ESC}(10U{ESC}(s0p12h10v0s0b3T ;FO<{ESC}&l0O{ESC}(11U{ESC}(s0p12h10v0s0b3T ;FO<{ESC}&l0O{ESC}(0N{ESC}(s0p12h10v0s0b3T ;FO<{ESC}&l0O{ESC}(8U{ESC}(s0p12h10v0s0b3T VL=67 UW:12pitch ;US:ROMAN8 US:PCSYMBOL ET USING THE S2 FONT CARTRIDGE When you use the S2 cartridge, you have the option of accessing five different proportional fonts each with 4 symbol sets. The 3HP-S.PRN reorganizes the fonts and symbol sets as S2*14HELVB-10U Proportional, 14 point S2*10TR-10U Proportional, 12 point S2*10TRB-10U Proportional, 12 point S2*10TRI-10U Proportional, 12 point S2*8TR-10U Proportional, 8 point S2*14HELVB-11U Proportional, 14 point S2*10TR-11U Proportional, 12 point S2*10TRB-11U Proportional, 12 point S2*10TRI-11U Proportional, 12 point S2*8TR-11U Proportional, 8 point Since 3HP-S.PRN reorganizes the four S2 cartridge symbol sets into two sets, only two font definitions are needed for each font. The set named PC-8 (10U) contains all the PC-8 (10U) characters plus certain characters from the ECMA-94 Latin (0N) set. The ECMA substitution table provides access to these characters. Use the S2 font definitions which have ÿ2D10U appended to them (S2*name-10U), for example, S2*14HELVB-10U or S2*10TRI-10U. The set named 11U contains all the PC-8 Danish/Norwegian (11U) characters, several of the ECMA-94 (0N) characters, and two characters from the Roman8 (8U) set. The LATIN substitution table provides access to these characters. Use the S2 font definitions which have ÿ2D11U appended to them (S2*name-11U), for example, S2*14HELVB-11U or S2*10TRI-11U. Note #1 Lowercase L. In all the escape codes shown in this application note, the character after the ampersand is a lowercase L (ell).