PCL 5 Comparison Guide for the HP LaserJet III HP LaserJet IIID HP LaserJet IIISi HP LaserJet IIIP HP LaserJet 4 Family HP LaserJet 4000 series HP Color LaserJet HP Color LaserJet 5/5M HP LaserJet 5 Family HP LaserJet 6 Family HP DeskJet 1200C HP DeskJet 1600C Printers Edition 1 E1097 HP Part No. 5021-0378 Printed in U.S.A.
All Rights Reserved. This document contains proprietary information which is protected by copyright. No part of this document may be photocopied, reproduced, or translated to another language without the prior written consent of Hewlett-Packard Company. Warranty The information contained in this document is subject to change without notice.
Printing Information This manual was created using text formatting software on a personal computer. The camera-ready copy was printed direct to film and reproduced using standard offset printing. Trademark Credits Intellifont is a U.S. registered trademark of Agfa Division, Miles Incorporated. CG Times is a product of Agfa Corporation, AGFA Compugraphic Division. LaserJet, PCL, DeskJet, Vectra, and Resolution Enhancement are U.S. registered trademarks of Hewlett-Packard Company.
Conventions This manual uses the following conventions: Bold indicates a term defined in the glossary. Italic refers to a related document, or is used for emphasis. The cursive letter l is used in some examples to distinguish the letter “l” from the numeral “1” (one). A slash zero 0 is used in some examples and escape sequences to distinguish the letter “O” from the number “0”. 0x XX represents a hexadecimal number (XX).
Contents 1 Printer Features PCL Feature Support . . . . . . . . . . . . . . . . . . . . . 1-3 PCL 5 Technical Reference Manual Corrections . . . . . . . 1-5 PCL Feature Support Matrix . . . . . . . . . . . . . . . . . 1-6 Printable Area . . . . . . . . . . . . . . . . . . . . . . . . . 1-26 2 Printer-Specific Differences HP LaserJet III and IIID Printers . . . . . . . . . . . . . . 2-1 HP LaserJet IIISi Printer . . . . . . . . . . . . . . . . . . . 2-2 HP LaserJet IIIP Printer . . . . . . . . . . . . . . .
New Font Format Header Segments . . . . . . . . . . . . 2-36 Description of Font Header Segments . . . . . . . . . . . 2-37 HP LaserJet 4PJ Programming Tips . . . . . . . . . . . . 2-49 Paper Size . . . . . . . . . . . . . . . . . . . . . . . . . . 2-60 HP LaserJet 4 Plus and 4M Plus Printers . . . . . . . . . . 2-60 HP LaserJet 4V and 4MV Printers . . . . . . . . . . . . . . 2-62 Font Header Format 16 Bitmap Font Support . . . . . . . . 2-63 Font Header Format . . . . . . . . . . . . . . . . . . . . .
Vertical Writing with Proportional Fonts . . . . . . . . . 2-101 HP Color LaserJet 5 and 5M Printers . . . . . . . . . . . . 2-103 HP LaserJet 6P/ 6MP Printers . . . . . . . . . . . . . . . . 2-105 HP LaserJet 5Si Mopier . . . . . . . . . . . . . . . . . . . . 2-105 HP LaserJet 6L Printer . . . . . . . . . . . . . . . . . . . . 2-106 HP LaserJet 4000 series Printers . . . . . . . . . . . . . . . 2-106 3 Internal Typefaces/Fonts and Symbol Sets Bitmap Fonts and Symbol Sets . . . . . . . . . . . . . . . .
Contents-4
1 Printer Features Introduction Hewlett-Packard printers which support the PCL 5 printer language contain slightly different feature sets, each suitable for that printer’s intended use. Each printer implements minor variations of PCL 5 as a result of those differences. With new printer releases, new features may be added with new commands and/or PCL operations which require documentation.
This guide covers the following HP LaserJet printers: Introduction Date LaserJet III LaserJet IIID LaserJet IIISi LaserJet IIIP LaserJet 4, 4M LaserJet 4Si, 4SiMx LaserJet 4L, 4ML LaserJet 4P, 4MP LaserJet 4 Plus, 4M Plus LaserJet 4PJ LaserJet 4V, 4MV DeskJet 1200C DeskJet 1200/PS Color LaserJet LaserJet 4LC DeskJet 1600C LaserJet 4LJ Pro LaserJet 5P, 5MP LaserJet 5L LaserJet 5Si, 5SiMx Color LaserJet 5, 5M LaserJet 5, 5M LaserJet 5Si Mopier LaserJet 6P, 6MP LaserJet 6L LaserJet 4000 series March 1990 Sep
PCL Feature Support Table 1-1, the PCL Feature Support Matrix, lists all the printer commands from the PCL 5 Printer Language Technical Reference Manual and identifies which of these commands are supported by the various printers. More detailed PCL information for each PCL 5 printer is provided in Chapter 2.
Notes In Table 1-1, if the command value field parameters are not listed, then all parameters are supported by printers that support that command. The value in parentheses following a command parameter identifies the parameter value field value (for example, the parameter “Letter (2)” indicates that the value field to select letter size in the Page Size command is “2” ). Commands which are not supported (“ns”) by a printer are ignored.
PCL 5 Technical Reference Manual Corrections This section describes updates to the PCL 5 Printer Language Technical Reference Manual (5961-0509). Because this manual will not be updated, any changes to it are documented in this guide. Some errors have been identified in the PCL 5 Printer Language Technical Reference Manual since its printing. Those errors are identified and corrections are provided on this page.
Table 1-1. PCL 5 Feature Support Matrix FUNCTION Configuration (AppleTalk) ?&b#W[data] Universal Exit/Start of PJL (UEL) Reset Number of Copies Simplex/Duplex Print Left (Long-Edge) Offset Registration Top (Short-Edge) Offset Registration Unit Of Measure Mechanical Print Quality Media Type Negative Motion ?%–12345X ✓- Indicates a command is supported. 1 COMMAND Supported if duplex option is installed.
Table 1-1. PCL Feature Support Matrix (continued) FUNCTION COMMAND Configuration (AppleTalk) ?&b#W[data] Universal Exit/Start of PJL (UEL) Reset Number of Copies Simplex/Duplex Print Left (Long-Edge) Offset Registration Top (Short-Edge) Offset Registration Unit Of Measure Mechanical Print Quality Media Type Negative Motion ?%–12345X ✓ - Indicates a command is supported.
Table 1-1. PCL 5 Feature Support Matrix (continued) FUNCTION COMMAND III IIID IIISi IIIP 4 4M 4Si 4SiMx 4L 4ML 4P 4MP 4PJ 4 Plus 4V 4M Plus 4MV PAGE CONTROL Page (Job) Size Executive (1) Letter (2) Legal (3) Ledger (6) A5 (25) A4 (26) A3 (27) JIS B5 Paper (45) JIS B4 Paper (46) Monarch Envelope (80) Comm. 10 Envelope (81) Intl. DL Envelope (90) Intl. C5 Envelope (91) Intl.
Table 1-1.
Table 1-1. PCL 5 Feature Support Matrix (continued) FUNCTION COMMAND III IIID IIISi IIIP 4 4M 4Si 4SiMx 4L 4ML 4P 4MP 4PJ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ 4 Plus 4V 4M Plus 4MV PAGE CONTROL (continued) Paper (Media) Source ?&l#H ✓ ✓ ✓ ✓ ✓ ✓ ✓ Eject Page (0) ✓ ✓ ✓ ✓ ✓ ✓ ✓ Main (Front) Paper Source (1) ✓ ✓ ✓ ✓ ✓ ✓ ✓ Manual (Top/Rear) Feed (2) ✓ ✓ ✓ ✓ ✓ ✓ ✓ Manual Env. Feed (3) ✓ ✓ ✓ ✓ ✓ Alt. Paper Source (4) ns ns ✓ ✓ Opt.
Table 1-1. PCL 5 Feature Support Matrix (continued) FUNCTION Paper (Media) Source Eject Page (0) Main (Front) Paper Source (1) Manual (Top/Rear) Feed (2) Manual Env. Feed (3) Alt.
Table 1-1.
Table 1-1.
Table 1-1.
Table 1-1.
Table 1-1.
Table 1-1. PCL 5 Feature Support Matrix (continued) FUNCTION Raster Resolution 75 Dots/Inch (75) 100 Dots/Inch (100) 150 Dots/Inch (150) 200 Dots/Inch (200) 1 300 Dots/Inch (300) 600 Dots/Inch (600) 1 Graphics Presentation Raster Height (Source) Raster Height (Destination) Raster Width (Source) Raster Width (Destination) Scale Algorithm Start Raster Graphics At logical page left limit(0) At CAP (1) At logic.
Table 1-1. PCL 5 Feature Support Matrix (continued) FUNCTION Horizontal Rectangle Size Vertical Rectangle Size Pattern ID (Area Fill ID) 1-100 for Shading 1-6 for Cross-hatch 0-32767 for User-defined Fill Rectangle Area COMMAND ?*c#A ?*c#H ?*c#B ?*c#V ?*c#G ✓ - Indicates a command is supported.
Table 1-1. PCL 5 Feature Support Matrix (continued) FUNCTION Horizontal Rectangle Size Vertical Rectangle Size Pattern ID (Area Fill ID) 1-100 for Shading 1-6 for Cross-hatch 0-32767 for User-defined Fill Rectangle Area Color COMMAND Color LJ 5, LJ 5M ?*c#A ?*c#H ?*c#B ?*c#V ?*c#G ✓ - Indicates a command is supported.
Table 1-1. PCL Feature Support Matrix (continued) FUNCTION COMMAND Picture Frame Horiz. Size Picture Frame Vert. Size Set Picture Frame Anchor Point HP-GL/2 Horiz. Plot Size HP-GL/2 Vert.
Table 1-1. PCL 5 Feature Support Matrix (continued) FUNCTION Picture Frame Horiz. Size Color COMMAND Color LJ 5, LJ 5M ?*c#X 4LJ Pro 4LC 5L 6L 5P 5MP PICTURE FRAME (for Vector Graphics) ✓ ✓ ✓ ✓ ✓ ns 5Si 6P 5SiMx 6MP Mopier 5 5M Desk- Desk4000 Jet Jet series 1200C 1600C ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ Picture Frame Vert. Size ?*c#Y ✓ Set Picture Frame Anchor Point ?*c0T ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ HP-GL/2 Horiz.
Table 1-1.
Table 1-1.
Table 1-1.
Table 1-1.
Printable Area 1-26 Feature Set The relationships between physical page, logical page, default picture frame, and printable area are illustrated in Figures 1-1 and 1-2. The tables list the variations in sizes for the different physical page sizes. For more information concerning printable area or logical/physical page differences, consult the PCL 5 Printer Language Technical Reference Manual.
PAPER SIZE Letter Legal Ledger Executive A4 A3 Com-10 Monarch C5 B5 DL JIS B4 JIS B5 Hagaki Oufuku-hagaki A 2550 2550 3300 2175 2480 3507 1237 1162 1913 2078 1299 3035 2149 1181 1748 DIMENSIONS (at 300 DPI - double for 600 DPI) B C D E F G Portrait Dimensions 3300 2400 3300 75 0 4200 2400 4200 75 0 5100 3150 5100 75 0 3150 2025 3150 75 0 3507 2338 3507 71 0 4960 3365 4960 71 0 2850 1087 2850 75 0 2250 1012 2250 75 0 2704 1771 2704 71 0 2952 1936 2952 71 0 2598 1157 2598 71 0 4299 2893 4299 71 0 3035 2007
DIMENSIONS (at 300 DPI - double for 600 DPI) B C D E F G Landscape Dimensions Letter 3300 2550 3180 2550 60 0 Legal 4200 2550 4080 2550 60 0 Ledger 5100 3300 4980 3300 60 0 Executive 3150 2175 3030 2175 60 0 A4 3507 2480 3389 2480 59 0 A3 4960 3507 4842 3507 59 0 Com-10 2850 1237 2730 1237 60 0 Monarch 2250 1162 2130 1162 60 0 C5 2704 1913 2586 1913 59 0 B5 2952 2078 2834 2078 59 0 DL 2598 1299 2480 1299 59 0 JIS B4 4299 3035 4181 3035 59 0 JIS B5 3035 2149 2917 2149 59 0 Hagaki 1748 1181 1630 1181 59 0 Ouf
2 Printer-Specific Differences Introduction Each Hewlett-Packard printer implements minor variations of PCL 5 in order to best suit its intended use. This chapter describes specific differences that are important when developing applications for the various PCL 5 printers. The sections in this chapter describe such information as new commands not contained in the PCL 5 Printer Language Technical Reference Manual, and other miscellaneous differences in PCL operation particular to that printer.
HP LaserJet IIISi Printer Table 2-1. Several new PCL features were added to the PCL 5 language with the release of the HP LaserJet IIISi printer. These new features are summarized in Table 2-1 below. PCL Feature Additions for HP LaserJet IIISi Printer Status Comments Number of Copies Page Size Output Bin Selection Command Feature Modified Modified New End Raster Graphics Command New/Modified Greater range, 1 to 32,767. C5 Envelopes not supported.
Table 2-2. HP LaserJet IIIP PCL Feature Additions Status Comments Set Compression Method Feature/Command Modified End Raster Graphics Command User-defined Patterns Modified New User-defined Pattern Command New Feature Adds Adaptive Compression method to the Set Compression Method command. Modified version of the End Raster Graphics command. Enables users to define and download their own userdefined pattern. Used to download the binary data for user-defined pattern. Sets pattern reference point.
Raster Graphics Adaptive Compression (IIIP) HP LaserJet 4 Printer Several new PCL features were added to the PCL 5 language with the release of the HP LaserJet 4 printer. These new features are summarized in Table 2-3. Most of these features are described in the revised PCL 5 Printer Language Technical Reference Manual (part number 5961-0509).
Table 2-3. PCL Feature Additions for HP LaserJet 4 Support Comments Adaptive Compression System Feature/Command New Configuration Command New Adaptive compression system enables the printer to compress internal raster data when memory becomes low. This operation occurs automatically; there are no PCL commands for this feature (refer to Chapter 5 for ADC information). Allows PCL jobs to be printed (using LocalTalk or EtherTalk MIO) using AppleTalk protocol.
Table 2-3. PCL Feature Additions for HP LaserJet 4 (continued) Feature/Command Status Readback Support Comments New Feature The addition of 6 new status readback commands enable the user to receive certain information back from the printer about fonts, symbol sets, macros, user-defined patterns, and available memory. Used to specify a status readback type of location (current, all, internal, downloaded, cartridge, SIMMs).
Configuration Command (AppleTalk) The Configuration command allows a user to send PCL jobs to the printer over AppleTalk. This data is sent in the form of “key/value” data pairs (refer to “AppleTalk Configuration” below for more information). ?&b#W [key][value] # = Number of data bytes that follow command Default = 0 Range = 0 - 32767 [key] can be 1 character through 32765 characters. [value] can be 1 character through 32765 characters.
Notes PostScript in the HP LaserJet 4 printer supports the PostScript level 1 operators setprintername, AppleTalktype, and jobname, and the PostScript level 2 setdevparams operator to allow PostScript print jobs to change the Name Binding Protocol (NBP) printer name and printer type, as well as change the print job name. MIO sub-system in the printer accepts a new NBP printer name, NBP printer type, and job name from either the PCL or PostScript personalities.
JOB JOB renames the current job name. ?&b#WJOBjobname All characters are valid. For the job name the first 127 characters are used. There is no default jobname. TYPE TYPE changes the type (device type) portion of the printer’s AppleTalk Name Binding Protocol type field. ?&b#WTYPEdevicetype Valid characters for the device type include 0-255 except for characters $00, “@” ($40), “:” ($3A), “*” ($2A), “=” ($3D), and $C5.
HP LaserJet 4Si Printer The HP LaserJet 4Si printer is the follow-on to the HP LaserJet IIISi printer. The HP LaserJet 4Si printer contains many new PCL features over the HP LaserJet IIISi. PCL support for the HP LaserJet 4Si printer is identical to the HP LaserJet 4 printer except for the addition of the duplex feature, dual output bin (see Table 1-1) and resource saving.
HP LaserJet 4L Printer The HP LaserJet 4L printer is a smaller, low-cost HP LaserJet printer. The control panel on this printer is limited to one button with four indicators. Many of the control panel functions must be controlled programmatically using Hewlett-Packard’s Printer Job Language (refer to the Printer Job Language Technical Reference Manual, part number 5021-0380 for detailed PJL information).
HP LaserJet 4ML Printer The HP LaserJet 4ML printer is similar to the HP LaserJet 4L printer, however, the 4ML includes PostScript and a LocalTalk I/O for printing in the Macintosh environment. The HP LaserJet 4ML printer also includes some new PCL features: print model logical operation (ROP3) and pixel placement, as described on the following pages. The HP LaserJet 4ML supports the typefaces that the HP LaserJet 4 printer supports.
Logical Operations With the introduction of the HP LaserJet 4ML printer the print model was expanded to include logical operations. The basic print model defines how a pattern, source image, and destination image are applied to each other using the print model’s transparent and opaque modes to produce a resulting image (refer to the PCL 5 Printer Language Technical Reference Manual for detailed information about the basic print model operation).
Transparency Modes: The white pixels of the source and/or pattern may be made transparent (source transparency 0, pattern transparency 0). The destination shows through these areas. Transparency modes are set by the Source Transparency (?*v#N) and Pattern Transparency (?*v#O) commands (refer to the PCL 5 Printer Language Technical Reference Manual). The print model allows logical operations, such as AND, OR, XOR, NOT, to be performed on source, texture, and destination images.
Notes The Logical Operation command (?*l#O) provides 255 possible logical operations. All of these logic operations map directly to their ROP3 (raster operation) counterparts (see the Microsoft Document, Reference, Volume 2, Chapter 11, Binary and Ternary Raster Operation Codes). The logical operations were defined by Microsoft Windows for an RGB color space (a ‘‘1’’ is white and a “0” is black).
The four basic interactions are: Case 1: Source and Pattern are opaque. Return ROP3 ( Dest, Src, Texture ). Case 2: Source is opaque, Pattern is transparent. Temporary_ROP3 = ROP3 ( Dest, Src, Texture ). Image_A = Temporary_ROP3, & Not Src. Image_B = Temporary_ROP3 & Pattern. Image_C = Not Pattern & Src & Dest. Return Image_A | Image_B | Image_C Case 3: Source is transparent, Pattern is opaque. Temporary_ROP3 = ROP3 ( Dest, Src, Texture ). Image_A = Temporary_ROP3 & Src. Image_B = Dest & Not Src.
Logical Operation Command Specifies the logical operation to be performed in RGB color space on the destination, source and texture to produce new destination data. ?*l#O # = Logical operation value (see Table 2-6) Default = 252 (TSo) Range = 0 to 255 Note When source and/or pattern transparency modes are set opaque (not defaulted), values specified by this command map directly to the ROP3 (raster operation) table values on the following page.
Example: The Logical Operation default value is 252 (TSo), corresponding to a logical function of: (texture | source) The result is computed below for both case 1 (source and pattern opaque) and case 4 (source and pattern transparent) on the previous page. Note that the ROP3 value of 252 results only with case 1, when both source and pattern transparency modes are set to opaque. Table 2-5.
Table of Logical Operations Table 2-6, Logical Operations (ROP3), shows the mapping between input values and their logical operations. Note that the logical operations are specified as RPN (reverse polish notation) equations.
Table 2-6.
Table 2-6.
Table 2-6.
Table 2-6.
Table 2-6.
Pixel Placement Command This command determines how pixels are rendered in images. ?*l # R # = 0 - Grid intersection 1 - Grid centered Default = 0 Range = 0, 1 (command is ignored for other values) Two models are used for rendering pixels when an image is placed on paper: Grid Intersection Model Grid Centered Model This command can be invoked multiple times during a page. It has no effect except to switch the model being used for imaging.
The example shown in Figure 2-1 illustrates the concepts of the two models. Assume a rectangle extends from coordinate position (1,1) to position (3,4). As shown below, each model produces a different result. (Since PCL printers print only at intersections, grid centered pixel placement is implemented as shown on the right.) Figure 2-1. Pixel Placement The grid centered model produces a rectangle that is one dot row thinner and one dot row shorter than the grid intersection model.
Placement Variations PCL and HP-GL/2 (see following pages for HP-GL/2 pixel placement command description) provide two pixel placement modes: grid intersection (the default) and grid centered. Grid intersection places pixels on the intersections of the grid (see Figure 2-2). Grid centered places pixels in the center of the grid. In Figure 2-2, a rectangle extends from position (1,1) to (3,4). The grid centered model produces a rectangle one dot thinner and one dot shorter then the grid intersection model.
Pixel Placement Command (HP-GL/2) The Pixel Placement (PP) command controls how pixels are placed on the layout grid during polygon fills. Two pixel placement modes are grid intersection or grid centered. PP [mode] ; Pixel Placement Command (HP-GL/2) Parameter mode Format clamped integer Functional Range 0 or 1 Default 0 (grid intersection) mode 0 = 1 = grid intersection; device draws pixels centered at grid intersections (see Figure 2-1).
Merge Control Command (HP-GL/2) The Merge Control (MC) command specifies the raster operation (ROP’s) to be performed in HP-GL/2. Raster Operations specify how source, destination, and patterns are combined to produce final images. This command supports all 256 Microsoft Windows ternary (ROP3) raster-operation codes. MC [mode, [opcode] ] ; Merge Control Command (HP-GL/2) Parameter mode opcode 1 Format clamped integer clamped integer Functional Range 0 or 1 0...
Note When using the MC command, some pattern types will not produce the expected ROP result. This only occurs when using the FT (Fill Type) command pattern types 1, 2, 3, and 4, and the ROP includes an XOR operation. (This problem is due to the fact that these patterns are the result of a vector operation and do not produce raster data for use by a ROP operation.) All other Fill Type command patterns (types, 10, 11, 21, or 22) operate as expected.
HP LaserJet 4P and 4MP Printers The HP LaserJet 4P printer is the follow-on to the HP LaserJet IIIP printer. The HP LaserJet 4MP printer is the multi-platform (PostScript) version of the 4P printer. PCL operation and the internal fonts in these two printers are identical to that of the HP LaserJet 4ML printer. The 4P and 4MP printers have a control panel unlike the 4L and 4ML printers.
HP LaserJet 4PJ Printer Table 2-8. The HP LaserJet 4PJ printer is a modified version of the HP LaserJet 4P printer designed specifically for the Japanese market. The enhanced PCL 5 printer language in this printer includes all of the PCL 5 features of the HP LaserJet 4P, plus special features which specifically support the Asian printing market. These features include large font support, support for vertical printing, and the ESC/P printer language.
Descriptions of the Text Parsing Method Command, Character Text Path Direction Command, and Font Format 16 are provided in the following paragraphs. Following that, a “LaserJet 4PJ Programming Tips” section offers examples and tips for performing specific tasks using PCL 5. Text Parsing Method Command The Text Parsing Method command informs the PCL parser whether character codes should be interpreted as 1-byte or 2-byte character codes as described below.
method can be used for parsing characters in the Shift-JIS encoding specification. If the value field is 38, character codes in the range 0x80-0xFF are processed as the first byte of a two-byte character. The following byte is processed as the second byte of the two-byte character. All character codes outside this range are processed as one-byte values.
Vertical substitution characters are those characters which change their appearance, orientation, or positioning when written vertically. Examples in Japanese fonts include parentheses, brackets, punctuation and small kana. In the example above, the two small characters are replaced with vertical substitutes. Vertical substitution characters are accessed through the Vertical Substitutes Character Segment, which is described in more detail later in this chapter.
New Font Format Header Segments For the HP LaserJet 4PJ printer, Font Header Format 15 has been extended to include optional data segments for supporting galley characters, typeface strings, and character enhancements. Font Format 16 supports these segments plus optional segments for supporting vertical substitution and a vertical rotation offset. (Segmented Font Data is described beginning on page 11-45 of the PCL 5 Printer Language Technical Reference Manual.
Table 2-9.
Data Segment Size The Data Segment Size indicates the number of bytes in the immediately following Data Segment. The size of this field is 4 bytes for Font Format 16 fonts, and 2 bytes for Font Format 15 fonts. The rest of the data segments are identical for both font formats. Galley Character Segment If an application requests a character that does not exist within the current font, the printer checks the Galley Character Segment for a substitute character to print instead.
Default Galley Character (UI). Character code of the character to be printed when a specified character is not within any of the defined regions. Number of Regions (UI). Number of regions for which galley characters are defined. Regions are defined for a table in which the first character code byte specifies the row and the second byte specifies the column. Region #x Upper Left Character Code (UI). Character code defining upper left corner of Region #x. Region #x Lower Right Character Code (UI).
exist, some glyph data will be output. For double-byte characters, the glyph of the default character defined for the given TrueType font is used. For single-byte characters, the glyph at 0xA5 (small dot, U+FF65) is used.” The following table shows a Galley Character Segment which follows the Japanese Windows specification.
Vertical Substitution Segment The Vertical Substitution Segment contains pairs of glyph IDs. Each pair specifies the horizontal and vertical glyph ID for a character. The segment can be built directly from a TrueType mort table which contains a vertical substitution array. The segment definition is shown in the table below. Byte 15 (MSB) 8 7 (LSB) 0 0 VT (22100) 1 2 4 Data Segment Size (4*n+4) * 3 5 6 Horizontal Glyph ID #1 7 8 Vertical Glyph ID #1 9 ... Byte ...
If the value pairs are not sorted by horizontal glyph ID, the data segment is invalid. If the End of Table mark #1 is not 0xFFFF, the data segment is invalid. The location of the end of the table is determined using the Data Segment Size field. If the segment is invalid, the font download is ignored. Typeface String Segment The purpose of this segment is to provide a substitute string to print for a permanent downloaded font when doing a PCL Typeface List printout.
The Typeface String Segment will be invalid if the Data Segment Size declared in the Data Segment Size field is larger or smaller than required for substitute string length, or if the Data Segment Size is an odd number of bytes. If the segment is invalid, the font download will be ignored. Typeface String Segments can be downloaded with any Font Format 15 or Font Format 16 font, regardless of font type. The following tables are examples of Typeface String Segments for two downloaded fonts.
MS Mincho Byte 15 (MSB) 0 TF (21574) 1 2 4 Data Segment Size (10) * 3 5 6 Embedded Font Name Flag = 1 8 10 12 14 8 7 (LSB) 0 Byte Substitute String Length = 4 7 Substitute String Character List = 0x826c (Note: these are full-width 0x8272 Shift-JIS character codes 0x96be for “MS” and Kanji 0x92a9 “Mincho” ) 9 11 13 15 MS Gothic Byte 15 (MSB) 0 TF (21574) 1 2 4 Data Segment Size (14) * 3 5 6 Embedded Font Name Flag = 0 8 10 12 14 16 18 8 7 (LSB) 0 Byte Substitute String Lengt
The following illustration shows how the PCL Typeface List would look. Vertical Rotation Segment The Vertical Rotation Segment is used to define the lower boundary of the rotation box used when the character text path direction is set to vertical rotation. This is an optional segment which may be downloaded with Font Format 16 TrueType fonts. The following illustration shows an example of character rotation. The boxes around each character represent the vertical rotation box.
The structure of the Vertical Rotation Segment is: Byte 15 (MSB) 8 7 (LSB) 0 Byte 0 VR (22098) 1 2 4 Data Segment Size (4) * 3 5 6 Format (0) 7 8 Descender value 9 * This segment is for Font Format 16. The Data Segment Size field for Font Format 16 fonts is 4 bytes; the segment for Font Format 15 fonts is identical except the Data Segment Size field is 2 bytes instead. Format (UINT16)—Set this value to 0.
If the Vertical Rotation Segment is not downloaded with the font definition, a default value is used for the Descender value. The default value is set to the following: Descender value = -36/256 * ScaleFactor Where: ScaleFactor is Bytes 64 and 65 from the Font Format 16 Font Header. Character Enhancement Segment This segment indicates whether the pseudo-bold or pseudo-italic enhancements can be performed on a downloaded font.
Stroke Weight (UINT16)—This field specifies the stroke weights which the printer is allowed to provide using the pseudo-bold enhancement algorithm.
HP LaserJet 4PJ Programming Tips This section provides programming tips concerning specific considerations for the HP LaserJet 4PJ printer. This section covers general print job initialization, font metric calculation, vertical writing, and other issues which are pertinent to printing Japanese text on the HP LaserJet 4PJ printer using PCL 5.
The second example given here initializes a PCL 5 print job for printing Japanese text. The major differences from the previous example are that it specifies A4 paper, initializes the text parsing method to Shift-JIS, selects Win3.1J as the primary symbol set, selects MS-Mincho as the primary font.
In the MS-Mincho and MS-Gothic fonts provided in the HP LaserJet 4PJ, font metric calculation is somewhat easier than for the Latin-based fonts. Width calculations are easier because all characters of these fonts conform to one of two different character widths at a particular point size. The characters are either considered full-width or halfwidth. One-byte characters are always half-width and two-byte characters are always full-width.
Character Enhancements The HP LaserJet 4PJ printer supports PCL pseudo-bold and pseudo-italic character enhancements. These enhancements can be applied to the internal MS-Mincho and MS-Gothic fonts. They can also be applied to a TrueType soft font if a suitable “Character Enhancement” Segment is downloaded with the font header. The enhancements are selected using PCL font selection commands. The pseudo-italic enhancement can be selected using the Style command.
Note HP-GL/2 as implemented in HP LaserJet printers has no mechanism for parsing 2-byte characters. Therefore, HP-GL/2 character transformations (e.g. SI and SR commands) cannot be applied to these characters. Vertical Writing Vertical writing can be accomplished using the vertical rotated (“-1”) mode of the Character Text Path command (?&c-1T). When using a vertical rotated text path direction, full-width characters are rotated and printed “on their sides.
#include #include
#include #include #define KANJITXT "\225\127\226\173" #define RUBYTXT "\202\320\202\345\202\244 \202\331\202\361 " FILE *prn; main() { int point_size=72; prn = fopen("lpt1","wb"); /* open lpt1 for writing */ fprintf(prn,"\33%%-12345X"); /* send UEL to get to PJL */ fprintf(prn,"@PJL ENTER LANGUAGE=PCL\n"); /* Enter PCL */ fprintf(prn,"\33E"); /* EscE to reset printer */ fprintf(prn,"\33&t31P"); /* text parsing = Shift-JIS */ fprintf(prn,"\33(19K"); /* symbol set = Win3.
Vertical Underlining In Japanese writing, vertical underlines are placed to the right of vertical columns of text. This can be accomplished in PCL 5 using the Fill Rectangular Area command. An underline is simply a long thin black-filled box. The length of the underline depends on the length of the text to be underlined. An example of vertical underlining is shown below. The C program that follows was used to generate the PCL commands for this example.
#include #include
Vertical Clusters Vertical clusters are groups of two or three narrow characters side-by-side in a vertical line of text. Vertical clusters containing half-width characters can be created by using a combination of print direction and cursor positioning commands. An example of vertical clusters is shown below. The C program that follows was used to generate the PCL commands for this example. In this example, two halfwidth characters (e.g. 2-digit numbers) were printed as vertical clusters.
#include #include
Paper Size PAPER SIZE A JIS B5 Hagaki Oufuku-hagaki 2149 1181 1748 JIS B5 Hagaki Oufuku-hagaki 3035 1748 2362 HP LaserJet 4 Plus and 4M Plus Printers Three new paper sizes were added to the HP LaserJet 4PJ printer. These paper sizes include: JIS B5, Hagaki, and Oufuku-hagaki. The logical page size in dots per inch are shown in the table below. See page 1-26 in this manual and pages 2-9 to 2-10 in the PCL 5 Printer Language Technical Reference Manual for an explanation of these values.
language. If resource saving is enabled, all the permanent fonts, macros, and user-defined patterns plus other miscellaneous data is saved in a reserved portion of printer memory. This data is stored until the language is enabled again. When the language is re-enabled, the stored data is made available for use. Resource saving is enabled from the control panel or using PJL—no PCL commands are required for this operation.
HP LaserJet 4V and 4MV Printers HP LaserJet 4V and 4MV printers print at speeds up to 16 pages per minute and handle many paper sizes including 11"x17" paper. The HP LaserJet 4MV is the multi-platform (PostScript) version of the HP LaserJet 4V printer. The HP LaserJet 4V/4MV PCL 5 feature set is similar to that of the HP LaserJet 4 Plus/4M Plus printers, with the addition of wide format media support.
Font Header Format 16 Bitmap Font Support Font Header Format 16 was introduced with the HP LaserJet 4PJ for downloading large TrueType fonts. For the HP LaserJet 4V, Font Header Format 16 has been extended to support large bitmap fonts as well. The Font Header command ( ? ) s # W [font header data] ) is used to download font header data to the printer. A large font is a bound font with character codes that are not limited to 8-bit values. For this reason a large font is sometimes called a 16-bit font.
Table 2-10. Byte 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 - 47 48 - 63 64 66 68 70 72 ... Desc. Size ...
Table 2-11. Format 15 Segmented Font Data Byte 15 (MSB) 8 7 x+0 First segment, Segment Identifier x+2 First segment, Segment Size x+4 First segment, Data Segment ... ... x+4 Second segment: Segment identifier, + 1st Size, Data Segment seg size . . . ... ... #-6 Null Segment Identifier (FFFF - hex) #-4 Null Segment Size (0) #-2 Reserved (0) Checksum x = Font Descriptor Size # = Font header length (as defined in the Font Header command). Table 2-12.
The Segment Size field, which is part of each segment within the Segmented Font Data, was changed from an unsigned integer in Format 15 to an unsigned long integer in Format 16. This allows segments to be up to 232– 1 bytes long. Font Header Format 15 is described in more detail in the PCL 5 Printer Language Technical Reference Manual in the “Soft Font Creation” chapter. Format 16 supports new segments and new values for the Font Type and Font Scaling Technology fields.
The remaining fields should be set the same as in the Format 0 Font Header for PCL Bitmapped Fonts, with the following exceptions: Font Type Font type describes the font’s relation to symbol sets. For Format 16 bitmap fonts, set this field to 3. A value of 3 is used to identify a large (16-bit) font. All character codes 0 to 65534 are printable, except 0, 7 to 15, and 27 [decimal].
Table 2-13. Bitmap Resolution Data Segment Byte 15 (MSB) x+0 Segment Identifier (’BR’) x+2 Segment Size (4) x+4 x+6 X Resolution x+8 Y Resolution 8 7 (LSB) 0 The decimal equivalent for the ’BR’ mneumonic is 16978. X Resolution (unsigned long integer) This fields specifies the resolution of the font in the X dimension in dots per inch. Y Resolution (unsigned long integer) This fields specifies the resolution of the font in the Y dimension in dots per inch.
Limitations The following limitations apply to Format 16 Font Headers for bitmap fonts: The Font Type field for Format 16 bitmap fonts must be set to 3. This is the case for 1-byte as well as 2-byte bitmap fonts. First Code and Last Code fields need to be set. Format 16 optional data segments are ignored for bitmap fonts. These include the galley character segment, vertical substitution character segment, typeface string segment, and vertical rotation segment.
HP Color LaserJet Printer As its name implies, the HP Color LaserJet printer is a color laser printer. This 300 dpi printer adds several new features to the PCL 5 language. These new features are summarized in the table below and are described in detail in the PCL 5 Color Technical Reference Manual (part number 5961-0940). The printer also supports logical operations, the HP-GL/2 Merge Control command, and pixel placement (both PCL and HP-GL/2 commands).
Table 2-14. PCL Feature Additions for HP Color LaserJet Printer (continued) Feature PC (Pen Color—HP-GL/2) Status Comments New Changes the pen color in a palette created by the IN or CID command (?*v#W). Pushes or pops the palette from the palette stack. Several commands are added for raster scaling: Destination Raster Width (?*t#H), Destination Raster Height (?*t#V); also, two parameters are added to the Start Raster Graphics command to initiate scaling (?*r2A and ?*r3A).
HP LaserJet 4LJ Pro Printer The HP LaserJet 4LJ Pro printer (C3935), released in May 1995, is designed primarily for the Japanese market. This printer provides a print resolution of 600 dpi, has a maximum print speed of 4ppm, 2Mb of internal base memory, and improved font cache algorithm. PCL operation for this printer is identical to that of the HP LaserJet 4PJ printer. For command support, refer to Table 1-1, PCL Feature Support Matrix and to the “HP LaserJet 4PJ Printer” section earlier in this chapter.
Japanese typefaces, also applies to the LaserJet 4LC printer’s Chinese typefaces with the following differences. The default values for the Text Parsing Method command are different for the HP LaserJet 4LC. These default values are 0 or 38 (provided the default symbol set is GB2312, otherwise it is 0).
HP LaserJet 5L Printer The HP LaserJet 5L printer, introduced in September 1995, is much different in appearance than the LaserJet 4L printer, but it has a very similar feature set, including the same set of 26 internal typefaces. One of the main differences is that the LaserJet 5L printer offers 600 dpi printing. Although both printers have a print engine speed of 4 pages per minute, the LaserJet 5L printer has faster processing which increases performance.
HP LaserJet 5Si and 5SiMx Printers HP LaserJet 5Si and 5SiMx printers are designed for using in shared printing environments. The HP LaserJet 5SiMx printer is equivalent to the HP LaserJet 5Si printer, but also includes PostScript Level 2, 8 Mb of additional memory, and the HP JetDirect network interface card. HP LaserJet 5Si and 5SiMx printers have features similar to those of HP LaserJet 4Si and 4SiMx printers, with improved performance and extra paper handling features.
Table 2-15. PCL Feature Additions for HP LaserJet 5Si/5SiMx Printers Feature Status Paper (Media) Source Modified Output Bin Modified Alphanumeric ID Comments Additional parameters have been added to provide support for Tray 1, the printer’s right side multi-purpose tray and the other optional trays (see the description of this command in the following paragraphs). The Output Bin command (?&l#G) selects the destination bin for the print job.
The following table compares the paper/media source values and the trays they select on various printers.
Output Bin Command This command selects the destination bin into which the print job is output when printed.
Alphanumeric ID Command The Alphanumeric ID command performs several different functions depending on the operation specified.
Operation 0 1 2 3 4 5 20 Description Sets the current Font ID to the given String ID. This operation allows the user to set the current PCL Font ID to a string name, which gives the user the ability to download fonts to a string name. If the current Font ID has been set with both the Alphanumeric ID command and the Font ID command (?*c#D), the ID last sent takes precedence. For example, if the current font ID was set to 10 and then to “Font1”, the current font ID would be “Font1”.
Operation 21 100 Description Deletes the macro association named by the current Macro ID. The macro must have been associated with an alphanumeric Macro ID (using operation 4). No String ID is supplied (?&n1W21). This command removes the alphanumeric macro name association, however the disk resource itself is not changed. Media select (see media selection table). Media types are specified using the printer control panel.
Media Type Not specified Paper Size Not specified Paper Source Not specified Not specified Not specified Not specified Not specified Not specified Specified Specified (not manual feed) Specified (manual feed) Not specified Not specified Specified Not specified Specified Specified Not specified Specified Not specified Specified Not specified Specified Specified Not specified Specified Specified Specified Specified Specified (not manual feed) Specified (manual feed) Specified (not
Example: Using the Alphanumeric ID Command to Download a Font Fonts can be downloaded to the printer disk using PJL, or using PCL you can download a font with a String ID to RAM. The following example demonstrates downloading a font to a string name using PCL. Set the alphanumeric font ID to “TTFont1” ?&n8W0TTFont1 Download the font.
Specify the current font as primary using the alphanumeric ID command ?&n17W2AssociatedFontID Delete the name “AssociatedFontID” from the PCL database ?&n17W0AssociatedFontID ?&n1W20 Reset the printer. Resetting deletes all font and macro associations.
HP DeskJet 1200C Printer The DeskJet 1200C is a 300-dpi LaserJet-compatible thermal inkjet color printer. It uses PCL 5 and is very compatible with the LaserJet 4 family of printers. The main differences between the DeskJet 1200C and the LaserJet 4 printer are summarized in the table below (for a complete listing, see Table 1-1). Table 2-16.
Updated Features Printers with a “B” or “C” revision code, indicated by the third digit in the serial number, have the following additional new features. (Print the self-test to see the serial number.) Two-Byte Fonts. Provides support for two-byte (large) fonts with more than 256 characters. Two-byte fonts support such large symbol set mappings as Unicode, Shift-JIS, JIS208, and Big5. Two-byte fonts are compatible with current PCL data structures. Frame Buffer/MEt Architecture.
Enter HP-GL/2 Mode Command The Enter HP-GL/2 Mode command causes the printer to interpret data as HP-GL/2 commands instead of PCL commands. Three new parameters are added: one enables stand-alone plotter mode (?%-1B), and the other two affect the coordinate system and pen position when switching into HP-GL/2 (?%2B and ?%3B).
Media Type Command This command sets the print mode required for printing on various media types. ?&l#M #= 0 - Plain paper 1 - Bond paper 2 - Special paper 3 - Glossy film 4 - Transparency film Default = 0 Range = 0 to 4 If no printable data has been sent, this command moves CAP to the top of form at the left margin of the current page. If printable data has been sent, the page is closed and printed, and CAP moves to the top of form at the left margin of the next physical page.
Print Quality Command This command determines print quality and speed. ?*o#Q #= -1 - EconoFast 0 - Normal quality 1 - Best/Presentation graphics Default = 0 Range = -1, 0, 1 EconoFast prints black text at 300 dpi. When transparency or glossy media is loaded, the printer automatically adjusts the media type to Transparency and the print quality to Presentation graphics, regardless of the language or remote-panel selection.
Negative Motion Command The Negative Motion command specifies whether negative motion will be used, thus determining whether the full page must be buffered before printing can begin. ?&a#N #= 0 - Picture contains negative motion (page formatting printers) 1 - Picture contains no negative motion (swath printers) Default = 0 Range = 0, 1 If the page contains no negative motion, using the ?&a1N command increases print speed.
HP DeskJet 1600C Printer The DeskJet 1600C printer is a follow-on to the DeskJet 1200C. It has 600 x 600 dpi black text resolution (plus TES, which is similar to RET) and 300-dpi color resolution. Like the 1200C, the DeskJet 1600C is font- and languagecompatible with the latest LaserJet 4 series printers.
IEEE-P1284. This bi-directional enhanced capability port (ECP) allows most printer features to be monitored and controlled through Microsoft Windows or a DOS remote control panel shipped with the product. In previous HP printers, PJL provided some job-level status and control, but PJL is embedded in the data stream, synchronous with the printer description data. With the implementation if MLC (Multiple Logical Channels) on the ECP and MIO 6.
PJL. Unlike the DeskJet 1200C, which implemented only the PJL kernel, the DeskJet 1600C printer supports all of the PJL commands listed below. Full PJL implementation is not needed because of the multiple-channel capability of the IEEE-P1284 Extended Capabilities Port. DeskJet 1600C also supports page protection with the @PJL SET PAGEPROTECT command. COMMENT INQUIRE DEFAULT JOB ECHO RESET ENTER SET EOJ UEL Print Modes. The DeskJet 1600C has the following user-selectable print modes: EconoFast.
Media Source Command Compression Method Command The Paper (Media) Source command (?&l#H) for the DeskJet 1600C uses a value of 5 for its optional sheet feeder and also supports a value of 7 (autoselect). A value of 7 selects the current printer default source. The user, through the application, may select a particular tray for the first page or pages (for example, a fancy cover page), then choose autoselect to pull paper from a default tray (for example, containing standard paper).
The command byte itself has three parts: Control Bit Offset Count Replacement Count Control Bit. Determines whether the replacement data is compressed, and also the bit boundaries of the command byte’s other two fields. Offset Count. The left offset (number of bytes) the replacement data is offset from the current byte position in the seed row. Replacement Count. The number of consecutive bytes to be replaced.
count. If the replacement count byte is 255, another replacement count byte follows. The last replacement count byte is indicated by a value less than 255. One more than the total replacement byte count will be replaced. CONTROL BIT = 1 7 Control Bit = 1 6 5 Offset Count 4 0 Replacement Count If the control bit is 1, the replacement data is run length encoded. the bit boundaries are different than if the control bit is 0: bits 5-6 contain the offset count, and bits 0-4 contain the replacement count.
HP LaserJet 5 and 5M Printers HP LaserJet 5 and 5M printers are performance-enhanced follow-on products for HP LaserJet 4 Plus and 4M Plus printers, respectively. The enhanced PCL 5 printer language in these printers include all of the PCL 5 features supported by HP LaserJet 4 Plus and 4M Plus printers as well as the features listed in Table 2-18. Table 2-18.
Two-Byte HP-GL/2 Support One-byte applications (which support non-orthogonal rotation, scaling, and shearing of text) have long been able to use HP-GL/2 to print to HP LaserJet printers. Two-byte applications have not had this capability until the introduction of HP LaserJet 5 and 5M printers. The capability of 2-byte applications (which support non-orthogonal rotation, scaling, and shearing of text) to print to HP LaserJet printers using HP-GL/2 is provided by the Label Mode (LM) command.
Comments: MODE. Determines the interpretation mode as follows: 0 Interprets each byte as a character (8-bit mode where the default row_number equals "0"). Computed character code is equal to (row_number * 256) + 8-bit code sent in LB or SM command. 1 Interprets the next two bytes as a character (16-bit mode). LB and SM commands will read two bytes to form one 2-byte character code equal to (first_byte * 256) + second_byte. Label terminator and 8-bit control codes must be preceded by a NULL byte.
Row Number. Used only in modes 0 and 2 (8-bit modes) when a 16-bit character set is selected. The row number indicates the first byte while the LB or SM instruction will supply the second byte. For example, if you send LMO,37, and you have selected a 16-bit character set, sending LBAB would result in the device printing characters 65 and 66 from row 37 of the character set grid.
Vertical Writing with Proportional Fonts The Character Text Path Direction command was introduced with the HP LaserJet 4PJ printer to allow users to vertically rotate Asian fonts which were dual pitched. That is, the single-byte characters were half-width and the other characters were full-width. An algorithm was implemented to determine whether or not to counter-rotate characters when using the vertical-rotated printing mode of the Character Text Path Direction command.
The new algorithm for deciding whether or not to counter-rotate characters (when using the Character Text Path Direction command’s vertical-rotated printing mode) is as follows: if (the current font contains a VE segment) { if(the character code* is NOT contained in a VE range) rotate else don’t rotate } else use the old logic * The original character code, even if a galley character were substituted at some point.
HP Color LaserJet 5 and 5M Printers HP Color LaserJet 5 and 5M printers use new HP Image Resolution Enhancement technology 1200 (HP Image REt 1200) to project outstanding text, graphics, and more vibrant colors than before. The HP Color LaserJet 5M printer is network-ready with genuine Adobe PostScript Level 2 software, 36 Mbytes of memory, and an HP JetDirect card. The HP Color LaserJet 5 printer is upgradable so you can tailor it to suit the needs of your particular environment.
Render Algorithm Command The Render Algorithm command selects the algorithm to be used for rendering page marking entities on a given page. ?*t#J #= 0-14 - See section 4, “Modifying Output Color” in the PCL 5 Color Technical Reference Manual for information on algorithms 0 through 14.
HP LaserJet 6P/ 6MP Printers The HP LaserJet 6P and 6MP printers are similar to the LaserJet 5P and 5MP printers, with the addition of higher performance and faster print speed (up to 8 ppm). The PCL 5 feature set is identical to the LaserJet 5P/5MP printers, with the exception that the LaserJet 6P/6MP printers support some additional paper sizes (A5, JIS B5, JIS B4, and Oufuku-Hagaki postcards).
HP LaserJet 6L Printer The HP LaserJet 6L printer looks like the LaserJet 5L printer and has an identical PCL feature set. At 6 pagesper-minute, it prints two more pages per minute than the LaserJet 5L, contains the same standard typefaces, and supports the same paper sizes. Like the LaserJet 5L, the LaserJet 6L printer does not have a control panel. (Refer to Table 1-1, HP LaserJet Printer Feature Comparison, for the specific PCL implementation.
3 Internal Typefaces/Fonts and Symbol Sets Introduction This chapter identifies the internal typefaces/fonts and their associated symbol sets available in the various printers. This information is presented first for bitmap fonts and their symbol sets, then for scalable typefaces and their symbol sets. Note Internal refers to those typefaces/fonts and symbol sets which are resident in the printer.
Bitmap Fonts and Symbol Sets Table 3-1 identifies the resident bitmap fonts for the printers. The supported symbol sets for these bitmap fonts are shown in Table 3-2. The HP LaserJet III, IIID, IIIP, and IIISi printers contained all these bitmap fonts. However, with the introduction of the HP LaserJet 4 printer, the bitmap Courier was replaced by a scalable Courier typeface (refer to “Scalable Typefaces and Symbol Sets”). The HP LaserJet 4L, 5L, and 6L printers do not contain any bitmap fonts.
Table 3-2.
Table 3-3.
Table 3-4.
Table 3-5.
Table 3-5. Scalable Symbol Sets (continued) HP LaserJet Printer 1 Symbol Set PC-1004 (OS/2) DeskTop Ventura International 2 PS Text Ventura US 2 Microsoft Publishing Math-8 Ventura Math 2 PS Math Pi Font Ventura ITC Zapf Dingbats 2 PS ITC Zapf Dingbats ITC Zapf Dingbats 100 ITC Zapf Dingbats 200 ITC Zapf Dingbats 300 ISO 8859-2 Latin 2 ISO 8859-9 Latin 5 ISO 8859-10 Latin 6 PC 852 PC 775 PC Turkish MC Text Windows 3.1 Latin 1 Windows 3.1 Latin 2 Windows 3.1 Latin 5 Windows Baltic (not 3.1) Windows 3.
Table 3-6. PCL Symbol Set ID 8U 0N 10U 11U 12U 19U 7J 10J 13J 14J 6J 1U 1E 0U 0S 0I 2S 1G 0D 1F 9U 12J 17U 9T 9E 5T 2N 5N 8M 5M 6M 15U 19M 579L Intellifont Typeface Symbol Set Support Symbol Set Roman-8 ISO 8859-1 Latin 1 (ECMA 94 Latin 1) PC-8 PC-8 D/N PC-850 Windows 3.1 Latin1 (ANSI) DeskTop PS Text Ventura International Ventura US Microsoft Publishing Legal ISO United Kingdom* ASCII* ISO Swedish: names* ISO Italian* ISO Spanish* ISO German* ISO Norwegian* ISO French* Windows 3.
Table 3-6. PCL Symbol Set ID 8U 0N 10U 11U 12U 19U 7J 10J 13J 14J 6J 1U 1E 0U 0S 0I 2S 1G 0D 1F 9U 12J 17U 9T 9E 5T 2N 5N 8M 5M 6M 15U 19M 579L Intellifont Typeface Symbol Set Support (continued) Symbol Set Roman-8 ISO 8859-1 Latin 1 (ECMA 94 Latin 1) PC-8 PC-8 D/N PC-850 Windows 3.1 Latin 1 (ANSI) DeskTop PS Text Ventura International Ventura US Microsoft Publishing Legal ISO United Kingdom * ASCII* ISO Swedish: names* ISO Italian* ISO Spanish* ISO German* ISO Norwegian* ISO French* Windows 3.
Table 3-7. TrueType Typeface Symbol Set Support Scalable TrueType Typefaces PCL Symbol Set ID 8U 0N 10U 11U 12U 19U 9J 7J 10J 13J 14J 6J 1U 1E 0U 0S 0I 2S 1G 0D 1F 9U 12J 17U 26U 9T 9E 19L 5T 2N Symbol Set Arial Roman-8 ISO 8859-1 Latin 1 (was ECMA 94 Latin 1) PC-8 PC-8 D/N PC-850 Windows 3.
Table 3-7. TrueType Typeface Symbol Set Support (continued) Scalable TrueType Typefaces PCL Symbol Set ID 5N 6N 8M 5M 6M 15U 19M 579L 19K 19C Symbol Set ISO 8859-9 Latin 5 ISO 8859-10 Latin 6 Math-8 PS Math Ventura Math Pi Font Symbol Wingdings Japanese Windows 3.1J (WIN3.
Typeface Selection Differences With the introduction of the HP LaserJet IID printer, Hewlett-Packard expanded the typeface value field (in the font header) from a one-byte to a two-byte value field, thus expanding the typeface range from 0-255 to 0-32767. This expansion allows for additional typefaces. Prior to the HP LaserJet IID printer, typeface values used a single byte (8-bits for a range of 0-255) for font selection.
Both the typeface family value and the typeface base value can be used for font selection. Since the typeface family value (two-byte value) is based on the typeface base value (9 bit value), a font selection which specifies the typeface base value may select a font described by a typeface family value in the printer. There is some variation in how font selection occurs between PCL 5 printer models when mixing the typeface family and base values.
Table 3-8.
4 Print Environment Introduction All of a printer’s current feature settings are collectively referred to as a print environment. A PCL printer maintains four print environments: Factory Default Environment, User Default Environment, Modified Print, and Overlay Environment. This chapter identifies the Factory Default Environment and User Default Environment.
Table 4-1.
Table 4-1.
Table 4-1.
Table 4-2.
Table 4-2. Factory Default Environment — HP-GL/2 Context (continued) LINE AND FILL ATTRIBUTE GROUP Line Type Solid Line Type Repeat Length 4% of the diagonal distance from P1 to P2 Line Cap Butt Line Join Mitered Miter Limit 5 Pen Width 0.
Note Table 4-3 lists the User Default Environment. This print environment is stored in non-volatile RAM (NVRAM), which allows it to be retained in the event of a power cycle (except for the HP LaserJet 4L, 5L, and 6L printers, which do not contain NVRAM). In earlier printers without PJL, the feature settings contained in the User Default Environment were selectable through the control panel only.
Table 4-3. User Default Environment Menu Item Copies Orientation Font Source Font Number Pitch 4 Point Size5 Symbol Set Form/Lines of Text6 Paper (Job) Size Manual Feed Duplex Binding Output Bin Resolution Enhancement Print Density EconoMode Resource Saving III IIID IIISi IIIP 1* through 991 Portrait*, Land. Internal*, Cartridge, Soft Fonts 0* (Courier) to n 10.00* .44 - 99.99 12.00* 4 - 999.
Table 4-3. User Default Environment (continued) Menu Item Range 5L 6L 5, 5M 6P, 6MP ✓ ✓ ✓ ✓ Font Number Pitch 2 Point Size3 Symbol Set Form/Lines Text4 Paper (Job) Size 1* through 9991 Portrait*, Land. Internal*, Cartridge, Soft Fonts 0* (Courier) to n 10.00* .44 - 99.99 12.00* 4 - 999.
Table 4-3. User Default Environment (continued) Menu Item Copies Orientation Font Source Font Number Pitch 2 Point Size3 Symbol Set Form/Lines Text4 Paper (Job) Size Manual Feed Duplex Binding Output Bin (Media Bin) Resolution Enhancement Print Density EconoMode Resource Saving Range 4000 series 1* through 9991 Portrait*, Land. Internal*, Cartridge, Soft Fonts 0* (Courier) to n 10.00* .44 - 99.99 12.00* 4 - 999.
5 Memory Usage Introduction In some situations, the amount of available memory for printing pages may be smaller than that required for printing. To make more effective use of the available printer memory, newer HP PCL 5 printers incorporate new methods for managing memory.
Operation of ADC and MEt The goal of ADC is to automatically and transparently reduce Memory Out errors caused by raster graphics pages. MEt extends this goal to reducing all Memory Out errors and eliminating Print Overrun errors. During the printing of a page, if available printer memory becomes low, all HP LaserJet 4, 5, and 6 family printers and the HP Color LaserJet printer have the ability to automatically compress any already-stored raster graphics data using a variety of compression techniques.
All HP LaserJet 4, 5, and 6 family printers also include enhancements to improve the internal storage of raster graphics data. Additional MEt Features With MEt, font data can also be compressed. All downloaded bitmap characters and characters scaled from internal or downloaded scalable outlines can be compressed. The amount of memory savings varies with the size of the characters involved (larger is better) but character sizes can typically be cut in half.
ADC and MEt Notes For raster graphics compression to perform at its best it is recommended that the “Recommendations For Sending Data to the Printer,” described below, be followed. Character bitmaps can only be compressed if they can be stored uncompressed in contiguous printer memory first. This requirement implies that large point size characters may require more printer memory than would seem necessary.
Avoid Non-Raster Commands — During the transmission of sequential raster bands non-raster commands should be avoided. This includes cursor positioning commands. Separation of Images — If more than one image or picture is to be printed on a page, it is best to keep them separate.
image separation. In general, for all HP LaserJet printers, tall, narrow images should be avoided since they typically require more memory. Wide Patterns — Patterns can use up a lot of memory— avoid them if possible. Avoid patterns which, in their final orientation, are not 1, 2, 4, 8, 16 or 32 (32 is for all but the 4L) bits wide.
Raster Graphics Adaptive Compression (Method 5) Raster Graphics Adaptive Compression (Set Compression Method Command, mode 5) is implemented on the HP LaserJet IIIP, Color LaserJet, all LaserJet 4, 5, and 6 family printers, and the DeskJet 1200C and 1600C printers. This compression method allows the host to compress data using a combination of PCL compression modes to obtain optimum compression (refer to the PCL 5 Printer Language Technical Reference manual, Set Compression Method Command, for details).
5-8 Memory Usage
A Printer Commands Introduction This appendix lists HP printer language commands. Table A-1 lists PCL 5 commands in hierarchical order and gives the decimal and hexadecimal equivalents of each. Table A-2 lists HP-GL/2 commands, where as Table A-3 lists control codes. Note Values in parentheses “(x)” identify the lower case of the termination character which is used for combining commands.
Table A-1. HP PCL 5 Commands FUNCTION PARAMETER COMMAND DECIMAL VALUE JOB CONTROL COMMANDS Reset HEXADECIMAL VALUE Configuration (AppleTalk) Key/Value data pair ?&b#W[data] 027 038 098 #...# 87 1B 26 62 #...# 57 Universal Exit Language (ULE) — ?%–12345X 027 037 045 049 050 051 052 053 088 1B 25 2D 31 32 33 34 35 58 Reset — ?E Number of Copies # of Copies ?&l#X (x) 027 038 108 #...# 088 (120) 1B 26 6C #...
Table A-1. FUNCTION HP PCL 5 Commands (continued) PARAMETER COMMAND DECIMAL VALUE HEXADECIMAL VALUE Unit of Measure # Number of units per inch ?&u#D (d) 027 038 117 #...# 068 (100) 1B 26 75 #...
Table A-1.
Table A-1. HP PCL 5 Commands (continued) FUNCTION Vertical Position Horizontal Position PARAMETER COMMAND CURSOR POSITIONING Vertical and Horizontal DECIMAL VALUE HEXADECIMAL VALUE # of Rows ?&a#R (r) 027 038 097 #...# 082 (114) 1B 26 61 #...# 52 (72) # of Units ?*p#Y (y) 027 042 112 #...# 089 (121) 1B 2A 70 #...# 59 (79) # of Decipoints ?&a#V (v) 027 038 097 #...# 086 (118) 1B 26 61 #...# 56 (76) # of Columns ?&a#C (c) 027 038 097 #...# 067 (99) 1B 26 61 #...
Table A-1.
Table A-1. HP PCL 5 Commands (continued) FUNCTION Primary Symbol Set PARAMETER COMMAND DECIMAL VALUE Symbol Set Selection1 - continued HEXADECIMAL VALUE PC Turkish ?(9T 027 040 057 084 1B 28 39 54 ISO 6: ASCII ?(0U 027 040 048 085 1B 28 30 55 Legal ?(1U 027 040 049 085 1B 28 31 55 Roman-8 ?(8U 027 040 056 085 1B 28 38 55 Windows 3.
Table A-1.
Table A-1.
Table A-1. HP PCL 5 Commands (continued) FUNCTION PARAMETER COMMAND FONT MANAGEMENT DECIMAL VALUE HEXADECIMAL VALUE Assign Font ID Font ID # ?*c#D (d) 027 042 099 #...# 068 (100) 1B 2A 63 #...
Table A-1. HP PCL 5 Commands (continued) FUNCTION Select font (with ID #) PARAMETER COMMAND DECIMAL VALUE Font Selection by ID Number HEXADECIMAL VALUE ID # primary font ?(#X 027 040 #...# 088 1B 28 #...# 58 ID # secondary font ?)#X 027 041 #...# 088 1B 29 #...# 58 SOFT FONT CREATION Font descriptor (font header) # of bytes ?)s#W[Data] Download character # of bytes ?(s#W[Data] Character code Character code # (decimal) ?*c#E 027 041 115 #...# 087 (e) 1B 29 73 #...# 57 027 040 115 #.
Table A-1.
Table A-1.
Table A-1.
Table A-1. HP PCL 5 Commands (continued) FUNCTION PARAMETER COMMAND DECIMAL VALUE USER DEFINED PATTERN / MANAGEMENT CREATION HEXADECIMAL VALUE Define (Download) Pattern # of bytes ?*c#W[Data] User-defined Pattern Control Delete all patterns ?*c0Q (q) 027 042 099 #...# 087 027 042 099 048 081 (113) 1B 2A 63 #...
Table A-1.
Table A-1.
Table A-1. HP PCL 5 Commands (continued) FUNCTION PARAMETER COMMAND COLOR COMMANDS DECIMAL VALUE HEXADECIMAL VALUE Assign Color Index Index Number ?*v#I (i) 027 042 118 #...# 073 (105) 1B 2A 76 #...# 49 (69) Color Component One 1st Component ?*v#A (a) 027 042 118 #...# 065 (97) 1B 2A 76 #...# 41 (61) Color Component Two 2nd Component ?*v#B (b) 027 042 118 #...# 066 (98) 1B 2A 76 #...# 42 (62) Color Component Three 3rd Component ?*v#C (c) 027 042 118 #...
Table A-2.
Table A-2. HP-GL/2 Commands (continued) COMMAND Fill Rectangle Absolute Fill Rectangle Relative Edge Rectangle Absolute Edge Rectangle Relative Fill Wedge Edge Wedge Polygon Mode Fill Polygon Edge Polygon * Parameters in brackets are optional.
Table A-2.
Table A-2. HP-GL/2 Commands (continued) FUNCTION Advance Full Page Scale Input Window Input P1 and P2 Input Relative P1 And P2 Default Values Initialize Replot Rotate Coordinate System Begin Plot Chord Tolerance Mode Download Character Frame Advance Media Type Merge Control Output Error Output Hardclip Limits Output Identification Output P1 and P2 Output Status Pixel Placement Plot Size Quality Level * Parameters in brackets are optional.
Table A-3. Control Codes Function Symbol Decimal Value Backspace B 8 Move one column left unless at left margin, in which case no action is taken. Horizontal Tab H 9 Move to the next horizontal tab stop. The tab stops are at the left margin, and every eight columns to the right of the left margin. Line Feed L F 10 Move to the next print line while maintaining current column position.
A-24 Printer Commands
B Internal Symbol Set Charts Introduction This section includes symbol set tables showing character locations and decimal addresses. Individual tables are provided for the following symbol sets: Roman-8 DeskTop Windows 3.1 Latin 1 “ANSI” ISO 8859/1 Latin 1 PC-8 PC-850 PS Text MC Text Ventura International PC-8 D/N Ventura US Legal Windows 3.0 Latin 1 Microsoft Publishing1 PC-852 PC-8 Turkish ISO 8859/2 Latin 2 Windows 3.1 Latin 2 ISO 8859/9 Latin 5 Windows 3.
The gray shaded areas in these tables denote printer control code areas. Math composite characters are shown with light-colored shades, and line-draw composite characters are shown with dark-colored shades. Composite characters are made by combining individual character elements into a large character. The International Organization for Standardization (ISO) symbol sets and the HP German and HP Spanish symbol sets are represented by a character substitution table (see page B-19).
7J DeskTop 8U Roman-8 (DT) (R8) Internal Symbol Set Charts B-3
0N ISO 8859/1 Latin 1 19U Windows 3.
12U 10U PC-850 Multilingual (PM) PC-8 Code Page 437 (PC) Internal Symbol Set Charts B-5
12J MC Text 10J B-6 Internal Symbol Set Charts (MC) PS Text (TS)
11U 13J PC-8 Danish/Norwegian Ventura International (PD) (VI) Internal Symbol Set Charts B-7
1U Legal 14J B-8 Internal Symbol Set Charts (LG) Ventura US (VU)
6J Microsoft Publishing (PG) 9U Windows 3.
9T 17U PC-Turkish (PT) PC-852 Latin 2 B-10 Internal Symbol Set Charts (PE)
9E 2N Windows 3.
5T Windows 3.
9J 26U PC-1004, Code Page 1004 PC-775, Code Page 775 (PU) (PV) Internal Symbol Set Charts B-13
19L 6N B-14 Internal Symbol Set Charts Windows Baltic (WL) ISO 8859/10 Latin 6 (E6)
8M 6M Math-8 (M8) Ventura Math (VM) Internal Symbol Set Charts B-15
5M PS Math 15U Pi Font B-16 Internal Symbol Set Charts (MS) (PI)
579L 19M Wingdings Font Symbol Font (L$) (AS) Internal Symbol Set Charts B-17
10L PS ITC Zapf Dingbats 9L Ventura ITC Zapf Dingbats B-18 Internal Symbol Set Charts (DS) (DV)
12L ITC Zapf Dingbats series 200 (D2) 11L ITC Zapf Dingbats series 100 (D1) Internal Symbol Set Charts B-19
13L ITC Zapf Dingbats series 300 B-20 Internal Symbol Set Charts (D3)
ISO Substitution Table Table B-1. This table provides a quick reference for the values of special characters contained in ISO (International Organization of Standardization) symbol sets. ISO symbol sets contain the same characters as the ASCII symbol set, except for the character positions listed in this table. For example, in the ISO 4 (United Kingdom) symbol set, the British pound sign replaces the number sign used in decimal position 35 of the ASCII symbol set.
Conversion Table Table B-2 gives the hexadecimal, decimal, and octal equivalent of each character in the Roman-8 symbol set. Use this table when your software requires hexadecimal, decimal, or octal values in place of your printer command characters. This conversion table begins on the following page.
Table B-2.
Table B-2.
Table B-2.
Table B-2.
Table B-2.
Table B-2.
Table B-2.
B-30 Internal Symbol Set Charts
C Symbol Set and Typeface Codes Introduction The symbol set IDs in Table C-1 are used to select symbol sets using PCL commands. Kind1 values are used to select symbol sets using HP-GL/2 commands. The values under Kind1 are also used in the Font Descriptor (header) symbol set field (bytes 14/15, described in Chapter 11, Font Creation of the PCL 5 Printer Language Technical Reference Manual). Table C-2 identifies the Typeface Family values for the various type foundries.
Note The HP-GL/2 Kind1 value can be calculated from the symbol set ID. The Kind1 value is the same value used for the Symbol Set value field in the Font Header (refer to Chapter 11, Symbol Set of the PCL 5 Printer Language Technical Reference Manual). The Kind1 value is computed by taking the value of the value field for the symbol set, multiplying it by 32, adding the decimal (ASCII) value of the termination character (the symbol set ID character value) of the escape sequence, and subtracting 64.
Table C-1. Symbol Set Values Symbol Set Name1 GW-3212 ISO 60: Danish/Norwegian Devanagari ISO 4: United Kingdom Windows 3.1 Latin 2 ISO 69: French ISO 21: German Greek-8 Windows 3.
Table C-1. Symbol Set Values (continued) Symbol Set Name1 ISO 8859/3 Latin 3 ISO 8859/4 Latin 4 ISO 8859/9 Latin 5 ISO 8859/10 Latin 6 ISO 8859/5 Latin/Cyrillic ISO 8859/6 Latin/Arabic ISO 8859/7 Latin/Greek OCR-A OCR-B OCR-M MICR (E13B) Typewriter Paired APL Bit Paired APL Expert Alternate Fraktur Reserved for Specials Cyrillic ASCII (8859/5-1986) Cyrillic PC Cyrillic Windows 3.
Table C-1.
Table C-3. Value 0 2 3 4 5 6 7 8 9 9 9 10 11 13 14 14 15 16 16 17 17 17 17 18 20 20 21 23 23 24 27 28 29 30 31 31 1 Typeface Base Values Typeface Family1 Line Printer Elite Courier Helvetica Times Roman Letter Gothic Script Prestige Caslon 540 & No.
Table C-3.
Table C-3.
Table C-3.
Table C-3.
Table C-3.
Table C-3.
Table C-3. Value 441 442 443 444 445 446 447 447 448 448 448 449 449 450 451 452 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 470 1 Typeface Base Values (continued) Typeface Family1 Runic MT Moore Computer Commercial Script Dominante Wilhelm Klingspor Gotisch Trajanus TSI Caxton Letraset Caxton Fette Fraktur Sapphire (pattern 0) Saphir (pattern 0) Rainbow Bass (pattern 0) European Pi Banco Bodoni Antiqua Sallwey Script Mathematical Pi Congress Cheq Berthold Walbaum Buch (B.
Table C-3.
Table C-3.
Table C-3. Value 611 612 613 614 615 616 617 618 619 620 620 621 622 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 641 642 642 1 Typeface Base Values (continued) Typeface Family1 Hanseatic (ultrabold condensed) Bison Jefferson Electra Antique No. 3 Flemish Script (italic) Hallmark Bodoni Modern #20 Westinghouse Gothic Bloc (outline) Empire (ultra condensed) Oscar Eagle Bold Joanna Solotype (inline) Akzidenz-Grotesk (B.
Table C-3.
Table C-3.
Table C-3.
C-20 Symbol Set and Typeface Codes
Index ! ?&b#W 2-7 ?*l # R 2-25 ?*l#O - Logical Operation 2-17 A adaptive compression IIIP 2-4 adaptive data compression (ADC) 2-4, 5-1 banded images 5-5 image separation 5-5 transmission guidelines 5-4 alphanumeric ID command 2-79 AppleTalk configuration 2-7, 2-71 device type 2-9 PCL job support 2-7 RENAME 2-8, 2-71 type, PostScript 2-8 ZONE 2-71 arbitrary dither matrix sizes 2-86 assign color index command 2-70 B base values, typeface 3-12 bitmap fonts, internal 3-2 C character conversion table B-22 dow
E I EconoMode 2-61 economy mode, 4L 2-11 end raster graphics command 2-2 enter HP-GL/2 mode command 2-85 environment factory default 4-1 saving 2-10 user default 4-7 I/O configuration 2-7 ID values, symbol set C-2 image adapt 5-2 initialization 2-49 internal fonts 3-1 internal symbol sets 3-1 mapping B-1 See also symbol set charts internal typefaces 3-1 ISO substitution characters B-21 F factory default environment 4-1 HP-GL/2 setting 4-4 settings 4-1 feature settings default 4-1 user 4-7 fill type HP-G
M manual conventions i-iv MC (merge control) command 2-29 mechanical print quality command 2-85 media destination (output bin) 2-78 media source command 2-76 media type command 2-85, 2-88 media type, selection by 2-79 memory character storage requirements 5-6 compression methods 5-6 polygon usage 5-6 print model 5-5 memory enhancement technology (MEt) 2-11, 2-60, 5-1 features 5-3 page protection 5-3 memory usage 5-1 font bitmaps 5-4 merge control command 2-29 monochrome print mode 2-70 MS Gothic 2-32 MS Min
simple color command 2-71 string ID 2-79 symbol set charts B-1 ID selection values C-2 ISO substitution characters B-21 kind 1 values C-2 scalable fonts 3-3 T text parsing method command 2-33 text path direction, character 2-34 transfer raster graphics by plane 2-71 transmission ADC recommendations 5-4 compression recommendations 5-4 transparency interactions and logical operation 2-15 TrueType fonts 3-10 two-byte fonts 2-86 two-byte typeface values 3-12 type, AppleTalk 2-9 typeface base values 3-12, C-5 f