background image

EN

Font Header Format 11-31

Scalable Font - Set Pitch Extended field to zero.

Height Extended (UB)

Bitmap Font - This is an addition to the Height field which extends 
the height an extra eight bits. The value of this field is in font design 
units. For example, a 10 point font designed at 300 dpi would have a 
Height field of 166 (41.5 dots, or 9.96 points) and a Height Extended 
field of 170 (0.1660 dots additional, which adds to 9.9998 points). 
This field is calculated similar to the Pitch Extended field. Refer to the 
Pitch description, above.

Scalable Font - Set The Height Extended field to zero.

Cap Height (UI)

Cap Height is a percentage of the Em of the font and is used to 
calculate the distance from the capline (top of an unaccented, 
uppercase letter, such as an “H”) to the baseline.

Bitmap Font - Fonts containing a 0 in this field are assumed to have 
a cap height percentage of 70.87% of Em (Em being a measure, in 
points, of the height of the body of the font.

The Cap Height data is represented as the product of the cap height 
percentage and the maximum unsigned integer:

0.7087 × 65535 = 46,445

For non-zero values, the Cap Height % is calculated as follows: 

Scalable Font - Contains the cap height in design units.

Summary of Contents for LaserJet 4100

Page 1: ...Part I Click here to access Part II on hp com ...

Page 2: ......

Page 3: ...HP Part No 5961 0509 Printed in USA First Edition October 1992 PCL 5 Printer LanguageTechnical Reference Manual ...

Page 4: ...otected by copyright All rights are reserved No part of this document may be photocopied reproduced or translated to another language without the prior written consent of Hewlett Packard Company The information contained in this document is subject to change without notice ...

Page 5: ...logy REt and was then reproduced using standard offset printing First Edition October 1992 NOTICE This document is the current edition of the technical reference manual for PCL 5 and earlier printers It replaces the September 1990 edition of the HP PCL 5 Printer Language Technical Reference Manual p n 33459 90903 If you have ordered another PCL Technical Reference document this manual and the PCL ...

Page 6: ...trademarks of Apple Computer Inc PostScript is a registered trademark of Adobe Systems Inc Centronics is a U S registered trademark of Centronics Corporation ITC Avant Garde Gothic ITC Benguiat ITC Bookman ITC Cheltenham ITC Galliard ITC Korinna ITC Lubalin Graph ITC Souvenir ITC Zapf Chancery and ITC Zapf Dingbats are U S registered trademarks of International Typeface Corporation ITC Tiffany is ...

Page 7: ...d familiarize themselves with the information provided in the PCL 5 Comparison Guide in addition to the information in this document Experienced Users This manual was written for people with some programming experience Many of the concept discussions assume some programming knowledge When writing a PCL language program you should know the PCL language concepts and commands presented in this manual...

Page 8: ...ure and describes the PCL command structure control codes and escape sequences Chapter 2 The Page This chapter introduces the idea of the logical page and identifies the area in which printing can occur It also describes the PCL coordinate system and the HP GL 2 picture frame Chapter 3 The Print Environment This chapter introduces the printer s feature settings collectively as the print environmen...

Page 9: ...nds The underline feature is described at the end of the chapter Chapter 9 Font Management This chapter describes font management which provides mechanisms for downloading and manipulating soft fonts Chapter 10 User Defined Symbol Sets This chapter describes the capability of some PCL 5 printers to enable users to define their own symbol sets for special needs Chapter 11 Soft Font Creation This ch...

Page 10: ...ables you to obtain PCL status information from the printer such as available printer user memory a list of fonts and symbol sets and the ID numbers of macros and user defined patterns Chapter 17 An Introduction to HP GL 2 Vector Graphics This chapter introduces basic information for HP GL 2 It lists the vector graphics commands and describes the HP GL 2 command syntax An overview of several impor...

Page 11: ...xplains the polygon mode and how it is used to draw polygons subpolygons and circles The commands for drawing and filling wedges and rectangles are also described in this chapter Chapter 22 The Line and Fill Attributes Group This chapter describes the commands used to vary the line types and fill patterns used to create HP GL 2 graphics Chapter 23 The Character Group This chapter contains informat...

Page 12: ... fonts and the printer s control panel Intellifont Scalable Typeface Format This document provides information for designing scalable fonts using Agfa s Font Access Interchange Standard FAIS This document can be obtained from Agfa Division Miles Inc by writing to the address below or by phone Agfa Division Miles Inc Typographic Systems OEM Technical Support 90 Industrial Way Wilmington MA 01887 50...

Page 13: ... PCL Printer Language Architecture 1 2 What are Printer Commands 1 3 Control Codes 1 3 PCL Commands 1 3 HP GL 2 Commands 1 4 PJL Commands 1 4 Syntax of Escape Sequences 1 5 Two Character Escape Sequences 1 5 Parameterized Escape Sequences 1 6 The Page Logical Page 2 2 Printed Dots 2 3 PCL Coordinate System 2 4 Units of the PCL Coordinate System 2 5 PCL Units 2 5 Decipoints 2 5 Columns Rows 2 5 Pri...

Page 14: ...stration Command 4 8 Duplex Page Side Selection Command 4 10 Job Separation Command 4 11 Output Bin Selection Command 4 12 Unit of Measure Command 4 13 Page Control Commands Page Size Command 5 2 PAPER SOURCE COMMAND 5 4 Logical Page Orientation Command 5 5 Print Direction Command 5 9 Text Area 5 11 Left Margin Command 5 13 Right Margin Command 5 14 Clear Horizontal Margins Command 5 15 Top Margin...

Page 15: ... 6 8 BS Backspace 6 9 HT Horizontal Tab 6 9 Vertical Cursor Positioning Rows Command 6 10 Vertical Cursor Positioning Decipoints Command 6 11 Vertical Cursor Positioning PCL Units Command 6 12 Half Line Feed Command 6 13 Vertical Cursor Positioning Control Codes 6 13 LF Line Feed 6 13 FF Form Feed 6 13 Line Termination Command 6 14 Push Pop Cursor Position Command 6 15 Fonts Font Sources 7 2 Symbo...

Page 16: ...mples 8 21 Bitmap Fixed Spaced Font 8 21 Scalable Proportional Spaced Font 8 22 Summary of Font Selection by Characteristic 8 23 Font Selectionby ID Command 8 26 Examples 8 27 Select Default Font Command 8 27 HP GL 2 Font Selection 8 27 Transparent Print Data Command 8 28 Example 8 28 Underline Command 8 29 Font Management Downloading Soft Fonts 9 2 Temporary vs Permanent Fonts 9 3 Deleting Fonts ...

Page 17: ...mbol Index Example 10 14 Soft Font Creation Font Classifications 11 2 Coordinate System 11 4 Bitmap Fonts 11 4 Intellifont Scalable Fonts 11 4 TrueType Scalable Fonts 11 5 Font Header Command 11 6 Font Header Format 11 6 Data Types 11 14 Font Descriptor Size UI 11 15 Header Format UB 11 15 Font Type UB 11 15 Style MSB UI 11 16 Baseline Position UI 11 18 Cell Width UI 11 18 Cell Height UI 11 18 Ori...

Page 18: ...l Italic Angle SI 11 35 Global Intellifont Data Size UI 11 35 Global Intellifont Data 11 35 Character Complement Array of UB 11 35 Checksum 11 39 Copyright 11 39 Segmented Font Data Format 15 11 39 Font Header Examples 11 43 Character Definitions 11 48 Character Code Command 11 49 Character Definition Command 11 50 Character Descriptor Formats 11 51 Character Descriptor and Data Format for PCL Bit...

Page 19: ... 13 18 Master X Resolution UI 13 18 Master Y Resolution UI 13 18 User defined Pattern Example 13 19 Set Pattern Reference Point Command 13 22 Pattern Control Command 13 23 PCL Rectangular Area Fill Graphics Rectangular Area Fill Procedure 14 1 Horizontal Rectangle Size Decipoints Command 14 3 Horizontal Rectangle Size PCL Units Command 14 3 Vertical Rectangle Size Decipoints Command 14 4 Vertical ...

Page 20: ...r Graphics Command 15 30 Raster Graphics Example 15 31 Status Readback Memory Status Request 16 2 Entity Status 16 3 Status Response 16 5 Status Response Syntax 16 6 Set Status Readback Location Type Command 16 8 Set Status Readback Location Unit Command 16 9 Inquire Status Readback Entity Command 16 10 Entity Status Responses 16 11 Font Response 16 11 Font Extended Response 16 15 Macro Response 1...

Page 21: ... and Location 17 21 Pen Status 17 21 Pen Location 17 23 Scaling 17 24 Absolute and Relative Pen Movement 17 25 The Picture Frame Defining the Image Area PCL Picture Frame 18 2 Automatically Adjusting Image Size to Fit the PCL Picture Frame 18 3 Creating a Page Size Independent Plot 18 3 Typical HP GL 2 PlotCommand Sequence 18 5 Horizontal Picture Frame Size 18 8 Example 18 9 Vertical Picture Frame...

Page 22: ...ive P1 and P2 19 26 IW Input Window 19 29 PG Advance Full Page 19 33 RO Rotate Coordinate System 19 34 Angle of Rotation 19 34 RP Replot 19 39 SC Scale 19 40 For Scaling Types 0 and 1 19 41 For Scaling Type 2 19 44 The Vector Group Drawing Lines 20 2 Drawing Circles 20 4 Drawing Arcs 20 5 Angle of Rotation 20 7 Drawing Bezier Curves 20 8 AA Arc Absolute 20 9 AR Arc Relative 20 13 AT Absolute Arc T...

Page 23: ...ill Polygon 21 31 PM Polygon Mode Command 21 34 PM0 or PM 21 34 PM1 21 36 PM2 21 37 RA Fill Rectangle Absolute 21 39 RR Fill Rectangle Relative 21 42 WG Fill Wedge 21 45 The Line and Fill Attributes Group Using Line Attributes and Types 22 2 Using Fill Types 22 4 Selecting a Pen and Changing Line Width 22 5 AC Anchor Corner 22 6 FT Fill Type 22 9 LA Line Attributes 22 15 Line Ends 22 17 Line Joins...

Page 24: ...ection 23 29 DR Relative Direction 23 37 Example Using the DR Command 23 41 DT Define Label Terminator 23 44 DV Define Variable Text Path 23 46 Example Using theDV Command 23 49 ES Extra Space 23 51 FI Select Primary Font 23 54 Example Using the FI Command 23 54 FN Select Secondary Font 23 56 Example Using the FN Command 23 57 LB Label 23 59 LO Label Origin 23 62 SA Select Alternate Font 23 66 SB ...

Page 25: ...nts 24 5 PCL Raster Graphics 24 7 Macros 24 8 HP GL 2 Vector Graphics 24 9 Performance 24 10 PCL Commands 24 10 Print Data 24 10 Print Overrun 24 10 Page Protection 24 10 I O 24 11 Troubleshooting Commands 24 12 End of Line Wrap 24 12 Example 24 12 Display Functions Mode 24 12 Example 24 13 Auto Continue Mode 24 14 Common Errors 24 15 20 ERROR 24 15 21 ERROR 24 15 22 ERROR 24 15 40 ERROR 24 15 Cus...

Page 26: ...Contents 14 EN ...

Page 27: ...performance leadership Its features were selected in direct response to customer requests HP will continue to lead enhancements to the PCL printer language to deliver powerful technology advances PCL commands are compact escape sequence codes that are embedded in the print job data stream This approach minimizes both data transmission and command decoding overhead HP PCL formatters and fonts are d...

Page 28: ...nters implement the above language feature groups in very cost effective formatters z HP printers have the ability to ignore most unsupported commands PCL 1 Print and Space functionality is the base set of functions provided for simple convenient single user workstation output PCL 2 EDP Electronic Data Processing Transaction functionality is a superset of PCL 1 Functions were added for general pur...

Page 29: ...cter identified by the symbol is a special control code which identifies the subsequent string of characters as a printer command As the printer monitors incoming data from a computer it looks for this character When this character appears the printer reads it and its associated characters as a command to perform and not as data to print Note PCL printer commands other than single character contro...

Page 30: ...e printed page PJL supplies job level control One of the main features PJL offers is the ability to switch printer languages personalities between jobs For example applications supporting PJL can print one job using PCL and then print the next job using PostScript or another printer language without any operator intervention PJL also provides two way communications with the printer For example PJL...

Page 31: ... to be performed X may be any character from the ASCII table within the range 48 126 decimal 0 through see Appendix A For a list of the two character escape sequences supported by the printer refer to the PCL Feature Support Matrix in Chapter 1 of the PCL 5 Comparison Guide Following are examples of two character escape sequences E a two character escape sequence used for resetting the printer 9 a...

Page 32: ...ctional portion indicated by the digits after a decimal point Numeric value fields are within the range 32767 to 65535 If an escape sequence requires a value field and a value is not specified a value of zero is assumed zi Parameter Character Any character from the ASCII table within the range 96 126 decimal through This character specifies the parameter to which the previous value field applies T...

Page 33: ...sequences Also in the escape sequence a script l is used to indicate a lower case l for clarity The following is an example of an escape sequence with a parameter character and a termination character This escape sequence performs two functions It is the combination of two commands l1O and l2A Notice that the and the l are dropped from the second printer command when the two commands are combined ...

Page 34: ...2 All alphabetic characters within the combined printer command are lower case except the final letter which is always upper case In the combined example above O becomes o The final character in the printer command must always be upper case to let the printer know that the command is complete 3 The printer commands are performed in the order that they are combined from left to right Be sure to com...

Page 35: ... 1 2The Page Introduction This chapter describes the PCL coordinate system It defines the logical page and the printable area it introduces the HP GL 2 vector graphics picture frame and identifies the boundaries of each ...

Page 36: ...fers to the Currently Active Position of the cursor also referred to as the CAP The location of the cursor is the position on the logical page where the next character will be positioned The cursor can be moved to different points on the logical page using the cursor positioning commands see Chapter 6 Cursor Positioning The PCL cursor cannot be moved outside of the logical page bounds The size of ...

Page 37: ...ting at either 300 or 600 dpi resolution At 600 dots per inch it becomes possible to print up to 360 000 dots per square inch 600 x 600 360 000 Print resolution of LaserJet 4 is selectable and can be specified either from the printer s control panel or programmed through PJL commands Figure 2 1 300 vs 600 DPI Dot Sizes Note Refer to Appendix E of the PCL 5 Comparison Guide or the printer User s Ma...

Page 38: ...he point 0 0 is at the intersection of the left edge of the logical page and the current top margin position Note Since the point 0 0 is always at the intersection of the left edge of the logical page and the current top margin position it moves if the top margin is changed and rotates around the page if the orientation is changed ...

Page 39: ...onfusion with the printer s physically printed dots which are determined by the printer s resolution Decipoints In PCL terminology a decipoint is 1 720 inch or one tenth of a PCL point a PCL point is 1 72 inch as opposed to a typographic point which is 1 72 inch Columns Rows The width of a column is defined by the current horizontal motion index HMI The distance between rows is defined by the curr...

Page 40: ...stem and units are described in detail in Chapter 17 An Introduction to HP GL 2 Vector Graphics and Chapter 18 The Picture Frame Note If no HP GL 2 picture frame size is specified using the commands described in Chapter 18 then the default HP GL 2 picture frame is used The default HP GL 2 picture frame is the current top and bottom margins and the left and right edges of the logical page The HP GL...

Page 41: ...le 2 2 Table 2 1 Portrait Logical Page Printable Area Boundaries DIMENSIONS at 300 DPI double for 600 DPI PAPER SIZE A B C D E F G H LETTER 2550 3300 2400 3300 75 0 50 150 Legal List 1 2550 4200 2400 4200 75 0 50 150 LEDGER 3300 5100 3150 5100 75 0 50 150 EXECUTIVE 2175 3150 2025 3150 75 0 50 150 A4 2480 3507 2338 3507 71 0 50 150 A3 3507 4960 3365 4960 71 0 50 150 COM 10 1237 2850 1087 2850 75 0 ...

Page 42: ...0 Legal List 1 4200 2550 4080 2550 60 0 50 150 LEDGER 5100 3300 4980 3300 60 0 50 150 EXECUTIVE 3150 2175 3030 2175 60 0 50 150 A4 3507 2480 3389 2480 59 0 50 150 A3 4960 3507 4842 3507 59 0 50 150 COM 10 2850 1237 2730 1237 60 0 50 150 MONARCH 2250 1162 2130 1162 60 0 50 150 C5 2704 1913 2586 1913 59 0 50 150 B5 2952 2078 2834 2078 59 0 50 150 DL 2598 1299 2480 1299 59 0 50 150 ...

Page 43: ...table area is clipped see Figure 2 4 Figure 2 4 Printable Area Character Cell Positioning Notes Pixel level clipping can also occur at the logical page for PCL when the page is positioned using the Left Registration command Pixel level clipping also occurs at the picture frame for HP GL 2 Characters are clipped if they fall across a margin left right top and bottom Refer to Text Area in Chapter 5 ...

Page 44: ...2 10 The Page EN ...

Page 45: ...select other settings Each time a job is printed some of the printer s feature settings may be changed from their default values to produce the desired printed output for that job After the job prints the job specific feature settings are longer be required since the next job is likely to have different output requirements The next job should clear all previous job settings by performing a reset T...

Page 46: ...t settings for specific printers refer to Chapter 3 of the PCL 5 Comparison Guide Table 3 1 Factory Default Print Environment Features PCL Context JOB CONTROL FONTS1 Number of Copies2 Symbol Set23 Duplex2 Spacing Binding2 3 Pitch4 Registration Height5 Tray2 Style Manual Feed2 Stroke Weight User defined Units Typeface Underlining Mode 1 The font characteristics are determined by the default font Th...

Page 47: ...ency Mode HP GL 2 Plot Vertical Size Pattern Reference Point MACRO Pattern Rotation Macro ID 1 The font characteristics are determined by the default font The default font can be the factory default font or the user selected default font from the printer s control panel or from a font cartridge containing a default font 2 User default values may be selected by the user from the printer s control p...

Page 48: ...lt font from the printer s control panel or from a font cartridge containing a default font 2 User default values may be selected by the user from the printer s control panel for these items 3 Selectable from the printer control panel if duplex is selected 4 Selectable from the printer s control panel if a fixed space scalable font has been selected as the user default 5 Selectable from the printe...

Page 49: ... Pen Turret Character Size Mode Pen Width Character Width Pen Width Selection Mode Character Height Selected Pen Character Slant Symbol Mode Extra Horizontal Space Fill Type Extra Vertical Space User defined Line Type Character Fill Mode Anchor Corner Label Origin User defined Fill Types Label Terminator PALETTE EXTENSION Transparent Data Mode Number of Pens Primary Font ID Transparency Mode Secon...

Page 50: ... z Paper Page Size Paper and Envelopes z Manual Feed z Orientation z Symbol Set Notes Refer to Horizontal Motion Index HMI Command in Chapter 5 for the implications of setting the user default font source number pitch or point size Refer to the printer User s Manual for instructions on how to select these user defaults from the control panel The PJL Printer Job Language SET command overrides the P...

Page 51: ...ent consists of the current settings for the items listed in Table 3 1 and Table 3 2 with the exception of the items listed in Table 3 3 below Note Not all of the Modified Print Environment features are applicable to every printer To identify variations and default settings for specific printers refer to the PCL 5 Comparison Guide Table 3 3 Items Not Included in Modified Print Environment PCL Cont...

Page 52: ...settings to their default values E CE used in HP GL 2 mode returns the printer to PCL mode in addition to resetting the print environment The HP GL 2 IN Initialize command resets HP GL 2 settings to their default values without affecting the PCL settings refer to the Initialize command described in Chapter 19 The Configuration and Status Group for additional information Notes Hewlett Packard stron...

Page 53: ...t A Cold Reset restores the Factory Default Environment which includes resetting the control panel items to their factory default settings A Cold Reset is performed by power cycling the printer while holding ON LINE until a 08 COLD RESET is displayed ...

Page 54: ...3 10 The Print Environment EN ...

Page 55: ...UEL Command exit language E Printer Reset Command Preamble Job Control Commands Page 1 Page Control Commands Data Page 2 Page Control Commands 1 Data 1 If a number of consecutive pages within a job have the same format such as margins VMI HMI etc the associated page control commands only need to be sent once for that group of pages Page n Page Control Commands Data E Printer Reset Command 12345X U...

Page 56: ...er Default Environment deletes temporary fonts macros user defined symbol sets and patterns It also prints any partial pages of data which may have been received E Notes Hewlett Packard strongly recommends the use of both the E command and the 12345X command Universal Exit Language Start of PJL also referred to as the UEL Command at the beginning and end of each job The order of these commands is ...

Page 57: ...s a printer reset same effect as E z Shuts down the PCL 5 printer language processor z Turns control over to PJL Notes Hewlett Packard strongly recommends the use of both E printer reset and 12345X UEL command at the beginning and end of each job The order of these commands is critical Refer to Structure of a Typical JobTable 4 1 for an example The UEL Command 12345X has the same effect as the E c...

Page 58: ...copies 99 for LaserJet II IIP III IIID IIIP and earlier LaserJet printers This command can be received anywhere within a page and affects the current page as well as subsequent pages Example To print 3 copies of a page send l3X Figure 4 1 Number of Copies Note The HP GL 2 Replot RP command is inactive for PCL 5 printers use the Number of Copies command for multiple HP GL 2 plots To be effective th...

Page 59: ... 0 Range 0 2 Other values ignored Long Edge bound duplexed pages are bound along the length of the physical page see Figure 4 2 Short edge bound duplexed pages are bound along the width of the physical page see Figure 4 3 Selecting long edge binding usually results in font rotation This may be a concern if available user memory is critical Note If this command is received by a printer which does n...

Page 60: ...4 6 PCL Job Control Commands EN Figure 4 2 Long Edge Binding Mode Figure 4 3 Short Edge Binding Mode ...

Page 61: ... back side duplex print of sheets printed in long edge binding duplex mode where positive values cause it to move left refer to Figure 4 4 and Figure 4 5 Negative values cause the logical page regardless of orientation to move left along the width of the physical page except on the back side of sheets printed in long edge binding duplex mode where negative values cause it to move right refer to Fi...

Page 62: ...where positive values cause it to move up refer to Figure 4 4 and Figure 4 5 Negative values cause the logical page regardless of orientation to move up along the length of the physical page except on the backside of sheets printed in short edge binding duplex mode where negative values cause it to move down refer to Figure 4 4 and Figure 4 5 Notes The value is absolute with respect to the default...

Page 63: ...EN Top Offset Registration Command 4 9 Figure 4 4 Short Edge Binding Mode Offsets Figure 4 5 Long Edge Binding Mode Offsets ...

Page 64: ...t front side 2 Select back side Default 0 Range 0 2 All other values ignored If this command is received by a printer which does not have duplex or if duplexing is not enabled these commands just eject the current page sheet positioning the cursor at the default position on the next page Example To print on the front side of a page regardless of the current side send the following a1G In this exam...

Page 65: ...ith job separation are not currently being used This ensures that if a printer with job separation is eventually added job separation will be performed If this command is received by a printer which does not have job separation the command is ignored Note It is possible to perform job offset in printers which do not have a mechanical offset mechanism but have dual paper trays In dual bin printers ...

Page 66: ...ion command selects either of the two output paper bins upper or lower rear for paper output l G 1 Upper Output Bin 2 Lower Rear Output Bin Default Upper Output Bin Range 1 2 Note If this command is received by a printer which does not contain the dual output bin feature it is ignored ...

Page 67: ...are rounded This affects the result of the following commands z Horizontal Cursor Position Columns z Horizontal Tab HT control code z Space SP control code z Backspace BS control code z Bitmap Character Delta X Delta X SI Chapter 11 For example if the unit of measure is set to 96 one PCL Unit 1 96 inch then the HMI is rounded to the nearest 1 96 inch If the unit of measure is set to 300 one PCL Un...

Page 68: ...s value is part of the modified print environment As such it is saved and restored whenever a macro is called or an overlay invoked and defaulted when establishing the overlay environment in preparation for an overlay Note Values out of range are mapped to the supported value with the minimum relative error For example a unit selection of 4801 would be mapped to 7200 since the relative error 0 333...

Page 69: ... of PCL Units used in cursor movements In addition PCL Units are not affected by the current control panel or PJL resolution setting Note If no other unit of measure value has been specified then the default is one Unit equals 1 300 inch In this case a cursor movement of 450 Units moves the cursor 1 5 inches whether printed at 300 or 600 dpi print resolution ...

Page 70: ...4 16 PCL Job Control Commands EN ...

Page 71: ...es as page source size orientation margins and text spacing This chapter describes the commands providing page format control Note If a number of consecutive pages within a job have the same format the associated page control commands should be sent only once for that group of pages Remember once a PCL command is set it remains in effect until changed by another command ...

Page 72: ...e Support Matrix in Chapter 1 of the PCL 5 Comparison Guide or the printer User s Manual for lists of supported paper and or envelope sizes on specific printers Upon receipt of this command any unprinted pages are printed the top margin text length and left and right margins are set to their user defaults and any automatic macro overlay is disabled The cursor is moved to the left edge of the logic...

Page 73: ... Size command is not supported on the HP LaserJet LaserJet or the LaserJet 500 printers Example To select a legal size page send l3A If the current source paper tray is LETTER and the requested page size is not currently available in another non secure source the following attendance message is displayed xx 1 LOAD LEGAL 1 xx A two letter mnemonic depending on the printer When the printer senses th...

Page 74: ...t all HP LaserJet printers support all possible paper sources The implementation of paper source locations varies slightly from printer to printer Refer to the PCL Feature Support Matrix in Chapter 1 of the PCL 5 Comparison Guide or the printer User s Manual for paper source feature implementation details for specific HP LaserJet printers The Paper Source command causes the current page to be prin...

Page 75: ...s horizontal motion index HMI and vertical motion index VMI to return to their user default values and disables the automatic macro overlay All data received prior to this command is printed and a Form Feed and Carriage Return executed The cursor is moved to the left edge of the logical page at the top margin cursor position see Figure 5 5 The factory default orientation is portrait Landscape orie...

Page 76: ...fer PM0 PM2 z Updates the current position to the lower left corner of the picture frame P1 Redefinition of the horizontal and or vertical picture frame z Defaults P1 and P2 IP z Defaults soft clip window IW z Clears the polygon buffer PM0 PM2 z Updates the current position to the lower left corner of the picture frame P1 Redefinition of the Picture Frame Anchor Point z Defaults P1 and P2 IP z Def...

Page 77: ...gical page orientation on the HP GL 2 picture orientation It is possible to alter the HP GL 2 picture orientation within the logical page using the HP GL 2 RO command refer to Chapter 21 for additional information Most HP GL 2 state variables retain their previous HP GL 2 value upon receipt of this command they are not affected by PCL mode However certain changes to the PCL state can affect the HP...

Page 78: ...5 8 Page Control Commands EN Figure 5 2 HP GL 2 Picture Orientation with Respect to Logical Page Orientation ...

Page 79: ...ample rotating a default page portrait orientation 0 print direction 90 causes data to print in the landscape direction across the portrait page z The margins are translated when the print direction changes by 90 the left margin becomes the new top margin the former top margin becomes the new right margin etc z The cursor position remains at the same physical location z All subsequent printing cha...

Page 80: ...5 10 Page Control Commands EN Figure 5 3 Changing Print Direction on a Page ...

Page 81: ... of the text area which in effect defines the bottom margin The perforation region is the distance from the bottom of the text area to the top of the text area top margin on the next page The text area is shown in Figure 5 4 In general characters are printed when they fall within the text area However characters can be printed between the bottom of the text area and the top of the text area on the...

Page 82: ...5 12 Page Control Commands EN Figure 5 4 Text Area Within the Page ...

Page 83: ...edge of the logical page the HMI setting defines the distance between columns which thereby defines the maximum number of columns on the logical page If the value field specifies a column greater than the current right margin the command is ignored Margins represent a physical position and once set do not change with subsequent changes in HMI If the cursor is to the left of the new left margin the...

Page 84: ...hich thereby defines the maximum number of columns on the logical page If the value field specifies a column which is greater than the right edge of the logical page the right margin is set to the right edge of the logical page If the value field specifies a column less than the left margin the command is ignored Margins represent a physical position and once set do not change with subsequent chan...

Page 85: ... Clear Horizontal Margins Command The Clear Horizontal Margins command resets the left and right margins The left margin is set to the left edge of the logical page column 0 and the right margin is set to the right edge of the logical page 9 ...

Page 86: ...t of a Top Margin command resets the text length according to the following equation The top margin represents a physical position and once set does not change with subsequent changes in VMI or line spacing The vertical cursor position for the first line of print is determined by the current values of the top margin and VMI using the following equation Note The default cursor position is not locat...

Page 87: ...EN Top Margin Command 5 17 Note The first line of the logical page is line 0 Figure 5 5 Margin Cursor Positioning ...

Page 88: ...x text length is less than inch the text length is set to the maximum allowable The value field sets the text length in lines referenced from the top margin If a value greater than the logical page length minus the top margin is specified or if the current VMI is 0 the command is ignored The user default text length is invoked whenever the orientation page length page size or top margin is changed...

Page 89: ...area on the next page When perforation skip is disabled a Line Feed or Half Line Feed allows the cursor to move to the next line or half line in the perforation region allowing printing to continue there l L 0 Disable 1 Enable Default 1 Range 0 1 Other values ignored Whenever the perforation skip mode is changed the top margin and page length are returned to their default values Note When perforat...

Page 90: ...affects only the Space control code character HMI is reset to match the new font when any of the font characteristics are changed and when switching between primary and secondary fonts with Shift In and Shift Out HMI is equal to the pitch value in the font header The factory default font s HMI is 12 12 120 1 10 inch per character or 10 characters per inch Note When HMI is not specifically set usin...

Page 91: ...then send the command k6 76H to change HMI This value field is calculated as follows Each character then occupies 6 76 120 inch or 1 17 75 inch To use Courier 12 point 10 cpi and print 80 characters across A4 paper requires adjusting the HMI value The HMI value is calculated as follows This value was obtained from Figure 2 3 which identifies the page sizes in 300 dpi dots ...

Page 92: ...cal movement This command affects the Line Feed and Half Line Feed spacing The factory default VMI is 8 which corresponds to 6 lines per inch A user default VMI can be selected from the control panel using the FORM menu item refer to the printer User s Manual for additional information Example To designate a VMI of 6 8 lines per inch send l6C 6 48 1 8 inch line The following equation converts line...

Page 93: ...es per page on letter size paper in portrait orientation with one half inch top and bottom margins send l7 27C 7 27 10 66 x 48 To print 66 lines per page on letter or legal size paper in landscape orientation with one half inch top and bottom margins send l5 45C 5 45 7 5 66 x 48 ...

Page 94: ...Other values are ignored This command performs the same function as the Vertical Motion Index VMI command except that it identifies the VMI in lines per inch lpi The factory default lines per inch setting is 6 A user default line spacing can be selected from the control panel using the FORM menu item Example To select 12 lpi send l12D Note Once a PCL command sets a parameter that parameter remains...

Page 95: ...g the cursor the cursor is automatically positioned after certain operations such as printing characters and graphics After printing a character the cursor is positioned to the right at a distance equal to the width of that character This is controlled by the character design described under Character Width in Chapter 10 and allows printing characters without requiring a cursor position command fo...

Page 96: ...d of the logical page 0 0 regardless of the current active position CAP see Figure 6 1 An unsigned value field in a cursor position command indicates absolute cursor movement Relative motion specifies the distance to move referenced from the current active position CAP see Figure 6 1 A signed value field in a cursor position command indicates relative cursor movement Figure 6 1 Absolute and Relati...

Page 97: ...PCL Units z Vertical Rectangle Size PCL Units z Horizontal Rectangle Size PCL Units In addition the current unit of measure setting affects how cursor movement values are rounded in turn affecting the result of the following commands z Horizontal Cursor Position Columns z Horizontal Tab HT control code z Space SP control code z Backspace BS control code z Bitmap Character Delta X Delta X SI Chapte...

Page 98: ...al Motion Index HMI Command in Chapter 5 The distance between rows is defined by the current vertical motion index VMI as described under Vertical Motion Index VMI Command in Chapter 5 HMI is the distance between consecutive characters VMI is the distance between consecutive lines of text HMI and VMI are described in more detail in Chapter 5 HP GL 2 has its own coordinate system and units For addi...

Page 99: ...nch If the unit of measure is set to 300 one PCL Unit 1 300 inch the HMI is rounded to the nearest 1 300 inch A value field with a plus sign indicates the new position is to the right of and relative to the current cursor position a minus sign indicates the new position is to the left of and relative to the current cursor position No sign indicates an absolute distance which is referenced from the...

Page 100: ...is to the right of and relative to the current cursor position a minus sign indicates the new position is to the left of and relative to the current cursor position No sign indicates an absolute distance which is referenced from the left edge of the logical page The left most position is 0 and the right most position is the right bound of the logical page If a request is made for a location outsid...

Page 101: ...on is to the left of and relative to the current cursor position No sign indicates an absolute distance which is referenced from the left edge of the logical page The left most position is 0 and the right most position is the right bound of the logical page If a request is made for a location outside the printer s logical page the current active position CAP is moved to the appropriate logical pag...

Page 102: ...f measure is set to 300 one PCL Unit 1 300 inch the HMI is rounded to the nearest 1 300 inch CR Carriage Return Moves the current active position CAP to the left margin on the current line Refer to Line Termination Command later in this chapter SP Space Moves the current active position CAP to the right by one column position Space may be a printable character or a control code If a character is d...

Page 103: ...verstrike character After printing the overstriking character the cursor returns to its position prior to the Backspace Multiple backspaces each move back the distance of the last printed symbol or space For example if world was printed with a proportional font and then 5 backspaces were performed the distance moved back would be five times the width of the d HT Horizontal Tab Moves the current ac...

Page 104: ...dicates the new position is upward from and relative to the current cursor position No sign indicates the new position is absolute from the top margin The top position defined by the top margin is 0 and the bottom position is determined by the bottom of the logical page Note Since the top margin can be changed using a printer command the physical location of the point 0 0 may change This affects t...

Page 105: ...nt cursor position a minus sign indicates the new position is upward from and relative to the current cursor position No sign indicates an absolute distance from the top margin The top position defined by the top margin is 0 and the bottom position is determined by the bottom of the logical page Note Since the top margin can be changed using a printer command the physical location of the point 0 0...

Page 106: ...nce from the top margin The top position defined by the top margin is 0 and the bottom position is determined by the bottom of the logical page Note Since the top margin can be changed using a printer command the physical location of the point 0 0 may change This affects the cursor position on the page If a request is made for a location outside the printer s logical page the current active positi...

Page 107: ...e used to position the cursor vertically These control codes are explained below LF Line Feed Advances the current active position CAP to the same horizontal position on the next line The distance to the next line is defined by the current line spacing defined by the last VMI or line spacing setting Refer to Line Termination Command later in this chapter FF Form Feed Advances the current active po...

Page 108: ...F 3 CR CR LF LF CR LF FF CR FF Default 0 Range 0 3 For example if a value field of 1 is sent the printer interprets each Carriage Return CR received as a Carriage Return CR and Line Feed LF control code A Line Feed or Form Feed would be sent as is If a value of 3 is sent the printer interprets each Carriage Return CR received as a Carriage Return CR and Line Feed LF it interprets each Line Feed LF...

Page 109: ...hed is the first item popped Twenty positions may be pushed If you try to save more than 20 positions the command is ignored If you try to restore more positions than were pushed the command is ignored A printer reset restores the current active position stack to the top all saved positions are discarded The positions stored in the stack are not changed with an orientation change Therefore the pos...

Page 110: ...6 16 Cursor Positioning EN ...

Page 111: ... several fonts A large font may be used for the title and chapter headings of a document a standard size font may be used for the body of the document and key words or phrases may be highlighted using a bold or italic font For example this text is printed using a Century Schoolbook typeface its height is 10 point its style is upright and its stroke weight is medium Examples of different fonts are ...

Page 112: ...f fonts and typefaces as described later are supplied with the printer These fonts reside in permanent ROM read only memory and are referred to as internal fonts Additional fonts can be added easily by inserting font cartridges or SIMM modules into the printer or downloading them from the host computer A cartridge font plugs into a font cartridge slot on the printer SIMM font modules plug into a p...

Page 113: ...t legal and scientific applications The following figure shows two common symbol sets PC 8 and Roman 8 The PC 8 symbol set contains some special symbols and line draw characters not included in the Roman 8 symbol set while the Roman 8 set contains European characters not contained in the PC 8 symbol set Note User defined symbol sets are supported by some HP LaserJet printers See Chapter 10 for mor...

Page 114: ...ed or proportional spacing Fixed spaced fonts Figure 7 3 are those in which the inter character spacing is constant Proportionally spaced fonts Figure 7 4 are those in which the inter character spacing varies with the natural shape of a character Figure 7 3 Fixed Spacing Figure 7 4 Proportional Spacing ...

Page 115: ...font is the measurement of the body of the type in PCL points A PCL point is 1 72 inch in bitmap fonts and approximately 1 72 inch in scalable fonts The body of the type is slightly larger than the distance from the bottom of a descender to the top of an unaccented capital letter Figure 7 6 Height This loose measure from near the bottom of a descender to just above the top of an unaccented capital...

Page 116: ...l expanded etc and structure solid outline shadow etc Examples of upright and italic styles are shown Figure 7 7 Style Stroke Weight Stroke weight describes the thickness of the strokes that compose characters Examples of medium and bold stroke weights are shown in the figure below Figure 7 8 Stroke Weight ...

Page 117: ...ce Family Typeface identifies the design of the symbols of the font Each typeface family has unique and distinguishing design characteristics The following example shows typefaces from various typeface families Figure 7 9 Typeface ...

Page 118: ...ations Earlier printers required fonts in the orientation which matched the orientation of the page Thus orientation is not as important as it once was The orientation of a font is still a consideration when the amount of user memory RAM is a concern Internal and other ROM based fonts consume very little user memory On some printers downloaded fonts scaled fonts and rotated fonts are stored entire...

Page 119: ...ters limited to one specific symbol set For a scalable font the symbol set spacing style stroke weight and typeface characteristics are all fixed and size is variable since it is scalable A scalable typeface on the other hand is a grouping of outline characters of a specific typeface which can produce multiple symbol sets For a scalable typeface spacing style stroke weight and typeface characteris...

Page 120: ...7 10 Fonts EN Figure 7 11 Bitmap Character Figure 7 12 Scalable Character ...

Page 121: ...ecial effects when printing characters These effects are achieved through the use of the print model feature or through the use of HP GL 2 vector graphics refer to Chapter 13 The PCL Print Model or to the HP GL 2 information in Chapters 17 23 The print model provides a simple means for printing patterned or shaded characters using the printer s predefined cross hatch shading patterns or user defin...

Page 122: ...7 12 Fonts EN ...

Page 123: ...select table in its operating code that contains the characteristic values of the current font Whenever the printer receives a font select command escape sequence specifying a new characteristic value the printer records that characteristic in the table After the table is updated receives new characteristic values and text is ready to be printed the printer performs a font select The printer searc...

Page 124: ...match the printer compares the next highest priority characteristic to the corresponding characteristic of the available fonts and so on down the list When only one font remains that font is selected However if after comparison of all the font design characteristics more than one font still remains then the resolution and location are considered Font Priority Considerations Symbol Set Spacing Pitc...

Page 125: ... font is considered If there are two fonts which are similar in all the above characteristics and which reside at the same location the font with the orientation that matches the orientation of the page is selected If only one font remains and its orientation is different than the current page the printer rotates the font to the orientation of the page Summary of Font Selection by Characteristic o...

Page 126: ...ont select table appears as follows To subsequently select a font with the same characteristics differing only in one aspect only the single characteristic must be specified For example to select a font differing only in stroke weight in this case medium rather than bold the printer s font select table could be changed as follows Symbol Set Roman 8 Spacing Fixed Pitch 10 cpi Height 12 point Style ...

Page 127: ...cs previously described apply to both tables This provides access to two distinct fonts only one of which is selected at a given time To alternate between the primary and the secondary font the control codes SI Shift In ASCII 15 is used to designate primary and SO Shift Out ASCII 14 is used to designate secondary The factory default state is primary font designated Font Resolution With the introdu...

Page 128: ...de Default 8U Range N A If the specified symbol set does not exist Roman 8 is selected However the specified symbol set is written into the font select table Notes The factory default primary and secondary symbol set is Roman 8 However you may select a user default symbol set from the printer control panel see the printer User s Manual If the font is a scalable typeface symbol set is determined fr...

Page 129: ...se the symbol set ID value as defined by the Symbol Set ID Code Command See Chapter 10 for more information Example To specify ASCII as the symbol set for the primary font send E C 0U To specify Roman 8 as the symbol set for the secondary font send E C 8U Typical Symbol Set Values Symbol Set Name Symbol Set ID ISO 69 French 1F ISO 8859 1 Latin 1 ECMA 94 0N ISO 6 ASCII 0U Legal 1U Roman 8 8U PC 8 1...

Page 130: ...nal Organization for Standardization or keyboard symbol sets to support European languages Each ISO symbol set is a unique ordering of symbols contained within the Roman 8 symbol set see Appendix B in the PCL 5 Comparison Guide The printer automatically generates the requested ISO font from an HP Roman 8 font ...

Page 131: ... but is not available a proportional spaced font is selected and the pitch characteristic is ignored For fixed spaced bitmap fonts both pitch and height point size are used for selection of font character size However for fixed spaced scalable fonts only pitch is used For proportional bitmap and scalable fonts only height is used for selection of font character size The user default primary and se...

Page 132: ... pitches are implicitly set by selection of a users default font from the printer s control panel refer to the printer User s Manual The range of valid pitch selections for a fixed spaced scalable font is 576 to 10 characters inch however not all valid pitches are available since the pitch value is actually converted to a corresponding point size height value which is scaled by the printer The eff...

Page 133: ...imately 50 of an Em For other fonts refer to the font metric data supplied by the font vendor Note If a scalable fixed space font is selected using an ID number send the Pitch command to specify the size otherwise the size is determined by the pitch characteristic value of the former font as listed in the font select table See Font Selection by ID Command later in this chapter for more information...

Page 134: ...elected All bitmap fonts whose heights are within a quarter point of the specified height are considered to have the specified height For scalable fonts the value field is from 25 to 999 75 points in increments of 0 25 point values are rounded to the nearest quarter point The factory default primary and secondary heights are 12 point In PCL bitmap fonts a point is 1 172 0 01389 inch For scalable f...

Page 135: ...eristic value of the former font as listed in the font select table See Font Selection by ID Command later in this chapter for more information Example To specify a height of 12 points for the primary font send E C s12V To specify a height of 14 4 points for the secondary font send E C s14 4V If the above sequence was used for selection of a scalable font the actual font would be scaled to 14 5 po...

Page 136: ... greater than 32767 are set to 32767 Style values for the most common typefaces are listed in Table 8 1 Additional style values may also be obtained from the related font documentation provided with HP s font products Table 8 1 Common Font Styles Value Font Styles 0 upright solid 1 italic 4 condensed 5 condensed italic 8 compressed or extra condensed 24 expanded 32 outline 64 inline 128 shadowed 1...

Page 137: ...on allows for additional styles Style values can be obtained by calculating the Style Word as described under Style MSB in Chapter 11 For selecting style an exact match is required If there is no match this characteristic is ignored but stored in the font select table available for the next selection Example To specify an upright style for the primary font send E C s0S To specify an italic style f...

Page 138: ...the strokes used in the design of the font The supported stroke weight values are 7 through 7 The thinnest font available is 7 the thickest font available is 7 The standard stroke weight for a medium font is 0 the standard stroke weight for a bold font is 3 the standard stroke weight for a light font is 3 Table 8 2 Stroke Weights Value Typeface 7 Ultra Thin 6 Extra Thin 5 Thin 4 Extra Light 3 Ligh...

Page 139: ...ult primary and secondary stroke weights are zero medium The user default primary and secondary stroke weights are implicitly set by selection of a user default font from the printer s control panel refer to the printer User s Manual Example To specify a bold stroke weight for the primary font send E C s3B To specify a medium stroke weight for the secondary font send E C s0B Note Many typefaces we...

Page 140: ...ult primary and secondary typefaces are Courier The user default primary and secondary typefaces are implicitly set by selection of a user default font from the printer s control panel refer to the printer User s Manual There is some variation in how font selection occurs between HP LaserJet models The typeface selection compatibility for two types of values is identified for various HP LaserJet p...

Page 141: ...the PCL 5 Comparison Guide Example To specify CG Times as the typeface family for the primary font send E C s4101T To specify Line Printer as the typeface family for the secondary font send E C s0T Sample Typeface Values FamilyValue Typeface Family 0 Line Printer 16602 Arial 4168 Antique Olive 4127 ITC Avant Garde 4119 CG Century Schoolbook 4101 CG Times 4148 Univers ...

Page 142: ...ned However the HP LaserJet IID IIP 2000 and all PCL 5 HP LaserJet printers have the capability to automatically rotate bitmap fonts and raster graphics to match the page orientation therefore all fonts are available in all four page orientations and print directions Whenever a scalable font is selected it is created in the current orientation for printing Refer to Logical Page Orientation Command...

Page 143: ... printer to select a primary font with the above characteristics E C 0UE C s0PE C s16 66HE C s8 5VE C s0SE C s0BE C s0T The previous sequence can be shortened by combining sequences that have the same two characters following the E C character E C 0UE C s0p16 66h8 5v0s0b0T Table 8 3 CHARACTERISTIC VALUE ESCAPE SEQUENCE Symbol set ASCII E C 0U Spacing Fixed E C s0P Pitch 16 66 cpi E C s16 66H Heigh...

Page 144: ... 25v0s3b4101T Notes If an escape sequence does not contain a value field the printer assumes a value of zero therefore the command E C sB can be sent to the printer instead of E C s0B Sending shortened font selection commands can result in selection of an unexpected font This is due to failure to track previously specified characteristics and their selection priority in relation to the current fon...

Page 145: ...ced fonts If fixed spacing is specified and available fixed spacing in the specified pitch is selected Bitmap Fonts For a fixed space bitmap font if the specified pitch is not available the next greater available pitch is selected If no greater pitch is available the closest available lesser pitch is selected If fixed spacing is specified but is not available a proportional spaced font is selected...

Page 146: ...e thinner stroke weight is selected If the specified stroke weight is less than 0 and is not available the next thinner available stroke weight is selected If no thinner stroke weight is available the closest available thicker stroke weight is selected 7 Typeface Family if the requested typeface is available in the remaining fonts that typeface is selected otherwise this characteristic is ignored ...

Page 147: ...racteristics except orientation that font which matches the current page orientation is selected If there is a soft font highest priority location available that matches all selection characteristics but is not in the current orientation and there is an identical font available in a cartridge or internal font lower priority location that is in the current orientation the soft font is selected and ...

Page 148: ...t is proportionally spaced the pitch characteristic is not changed If the designated font is not present the current font is retained Notes If a scalable font is selected using an ID number send the Height or Pitch command Height for proportional Pitch for fixed to specify the height or pitch otherwise the characteristic is determined by the value of the former font as listed in the font select ta...

Page 149: ...command HP GL 2 Font Selection In addition to selecting fonts using the PCL font selection commands fonts can also be selected and printed in HP GL 2 mode using the HP GL 2 label commands refer to Chapter 23 Character Group The HP GL 2 font selection commands allow you to label vector graphic images and to create some special effects with fonts not otherwise available These special effects include...

Page 150: ...printed if one exists otherwise a Space is processed For example control codes such as LF CR FF are treated as print data while in Transparent Print Data mode Example Assuming the currently selected symbol set is PC 8 send the following to print musical notes decimal code 14 E C p1X ASCII 14 The brackets are provided for clarity and are not part of the command sequence Note In the ASCII symbol set...

Page 151: ...zontal cursor motion When fixed position underlining is enabled the underline is drawn five dots below the baseline and is three dots thick The baseline is the dot row on which all of the characters in a given line appear to stand see Chapter 11 When floating position underline is enabled the underline position is determined by the greatest underline distance below the baseline of all of the fonts...

Page 152: ...8 30 PCL Font Selection EN ...

Page 153: ...soft fonts are saved in user memory RAM or deleted This is accomplished by assigning a font as either temporary or permanent or deleting a soft font In addition font management includes the command for assigning ID numbers to RAM fonts It also provides a mechanism for copying ROM fonts internal cartridge or SIMM to RAM for the purpose of assigning ID numbers ...

Page 154: ...isting font is deleted during the download Several commands are required to define a font before downloading it to the printer These commands are described in detail in Chapter 11 Hewlett Packard font files include the necessary commands that define the symbols of a font Assigning a font ID number and then copying the font file to the printer downloads the font Scalable fonts and typefaces may be ...

Page 155: ...ent fonts are deleted from user memory whenever the printer s power is turned off Switching printer languages personalities changing resolution or changing the Page Protection setting also deletes temporary and permanent fonts from user memory in some printers refer to the appropriate printer User s Manual for specifics An existing font is deleted when a new font with the same ID number is downloa...

Page 156: ...in Chapter 8 E C c D ID number Default 0 Range 0 32767 The font ID number is used during subsequent soft font downloads selections or deletions The factory default font ID is 0 if no Font ID command is sent an ID of 0 is assigned Note The font number assigned by the printer and used from the printer s control panel is not the same as the ID number assigned using the Font ID Command Example To spec...

Page 157: ...mporary last ID specified 5 Make soft font permanent last ID specified 6 Copy Assign current invoked font as temporary last ID specified Default N A Range 0 6 values outside range are ignored Note If the primary or secondary font is deleted a new primary or secondary font is selected automatically from the remaining fonts Examples To remove all soft fonts from user memory send E C c0F To remove on...

Page 158: ...make the soft font with an ID of 2 permanent send E C c2d5F To make a copy of the currently invoked selected font with an ID of 9 send E C c9d6F The Copy Assign font control feature can be used to copy either ROM or RAM fonts into RAM assigning them ID numbers Note When the currently selected font is a scalable TrueType ROM font E C c d6F assigns a font ID number but makes no copy of the font in R...

Page 159: ...d available on an MS DOS based hard disk 1 Set the font ID number to 2 E C c2D 2 Download a soft font file using the MS DOS COPY command with the B option COPY B filename PRN Note that the soft font is associated with font ID 2 3 Make the soft font permanent to prevent its deletion during a printer reset E C c5F 4 Designate the permanent soft font as primary E C 2X ...

Page 160: ...uch as the Master Symbol List MSL or the Unicode symbol index Font Selection and Unbound Fonts When a font is requested for printing the printer selects a font which most closely matches the current font selection characteristics symbol set spacing pitch height style stroke weight and typeface Refer to Summary of Font Selection by Characteristics in Chapter 8 for detailed font characteristic selec...

Page 161: ...t For example the Basic Latin collection always contains the same symbols Different fonts may contain different symbol collections For example the internal Univers typeface contains the Latin Math and Semi Graphic collections these collections contain all the symbols required for the 35 symbol sets that Univers supports The ITC Zapf Dingbats typeface on the other hand contains only the Dingbats co...

Page 162: ...4 symbol collections and that the character index is in HP s MSL numbers bit 0 TrueType example If bits 31 30 and 0 are cleared set to zero it indicates that the unbound font contains ASCII Latin 1 extensions and is based on Unicode numbers Character Requirements Number The other number the printer uses to determine symbol set compatibility the Character Requirements number is provided as part of ...

Page 163: ... If any matches are found those unbound fonts are included in the list of potential fonts for selection Final Font Selection After the process above is complete the printer contains a list of all fonts bitmap bound and unbound which support the requested symbol set If no fonts are found for the specified symbol set Roman 8 is used If more than one font remains the printer continues comparing font ...

Page 164: ...ch available symbol set These tables list the character code range and corresponding list of symbol index numbers Using this mapping the printer identifies which indexed character is printed for the character code in the current symbol set A partial symbol set mapping table is shown in Table 9 1 for the Roman 8 symbol set Table 9 1 Roman 8 Symbol Index Mapping Character Code MSL Index decimal Unic...

Page 165: ...r For example if the Roman 8 symbol set is selected and the printer receives character code 254 the printer accesses the Roman 8 symbol set mapping table Table 9 1 In the Roman 8 mapping table character code 254 is mapped to MSL number 191 or Unicode number 00b1 plus over minus symbol Thus to print character code 254 the printer searches the selected unbound font for the correct MSL or Unicode num...

Page 166: ...9 14 Font Management EN ...

Page 167: ...ymbol set you must first designate a symbol set ID code Next use the Define Symbol Set command to download the list of characters character codes and related symbol index numbers for the symbol set Once this is accomplished you may select the symbol set for printing in the same manner as any symbol set using the symbol set selection sequence E C ID Once a user defined symbol set is downloaded the ...

Page 168: ...D value must match the Encoded Symbol Set Designator field in the user defined symbol set header As mentioned above the symbol set ID code is related to a symbol set ID value The relationship between the ID code and the symbol set ID selection value is shown by the following formula Symbol Set ID code 32 ID 64 where represents the number portion of the ID selection value which may range from 0 102...

Page 169: ...lue to an ID code To create a user defined symbol set 1 Identify the symbols symbol index numbers for the symbol set from the MSL or Unicode list in Appendix D of the PCL 5 Comparison Guide List them in the appropriate character code order 2 Identify the symbol collections and Character Requirement bits that contain the symbols Appendix D of the PCL 5 Comparison Guide 3 Identify the Define Symbol ...

Page 170: ... symbol set definition is invalid the command is ignored If there is insufficient memory to create the symbol set the symbol set is discarded Note Send the Symbol Set ID Code command prior to the Define Symbol Set command to assign an ID code for the user defined symbol set If the Symbol Set ID Code command is not sent the last code sent is used If none have been sent then the default 0 is assigne...

Page 171: ...r of bytes from Header Size byte 0 to the last byte just before the beginning of the Symbol Map data bytes This value is 18 or greater Font Header Field Data Type Notation B Boolean 0 1 UB Unsigned Byte 0 255 SB Signed Byte 128 127 UI Unsigned Integer 0 65535 SI Signed Integer 32768 32767 ULI Unsigned Long Integer 0 232 1 SLI Signed Long Integer 231 231 1 ASCxx ASCII string array 0 xx 1 of charact...

Page 172: ... letter For example Assume the ID selection value selected for this symbol set is 17Q then 17 32 81 64 561 The symbol set ID code is 561 Format UB Set this field to 1 for MSL Intellifont or 3 for Unicode TrueType Unrecognized values cause the symbol set definition to be ignored Symbol Set Type UB This field defines the printable and unprintable codes for the symbol set Bit Field Designated Use 0 7...

Page 173: ...ility of a symbol set with an unbound font These two fields identify the unbound fonts in the printer which contain the symbol collections required to build a symbol set Refer to Unbound Scalable Fonts in Chapter 9 for a description of symbol collections and unbound fonts Each bit in the field represents a specific collection Setting a bit to 1 indicates that collection is required setting the bit...

Page 174: ...atin required such as ISO 8859 2 Latin 2 0 East European Latin not required 61 1 Turkish required such as ISO 8859 9 Latin 5 0 Turkish not required 34 1 Math required such as Math 8 0 Math not required 33 1 Semi graphic required such as PC 8 D N 0 Semi graphic not required 32 1 Dingbats required such as ITC Zapf Dingbats series 100 series 200 etc 0 Dingbats not required 2 1 0 000 MSL Symbol Index ...

Page 175: ...SO 8859 9 Latin 5 0 Turkish extensions not required 27 1 Desktop Publishing extensions required such as Windows 3 1 0 Desktop Publishing extensions not required 26 1 Accent extensions required such as ISO 8859 1 Latin 1 0 Accent extensions not required 25 1 PCL extensions required such as Roman 8 0 PCL extensions not required 24 1 Macintosh extensions required such as MC Text 0 Macintosh extension...

Page 176: ...requires only the Basic Latin Symbol Collection such as Roman 8 0000000100000000 Symbol set MSL requires only the Dingbat Collection 0000000000000001 Default requirement Unicode symbol set can be used with any typeface indexed bu Unicode 00000000A0000001 Symbol set Unicode requires the ASCII and East Europe Collections such as ISO 8859 2 0000000088000001 Symbol set Unicode requires the ASCII and D...

Page 177: ...l index number in the Symbol Map field is mapped to the character code whose value is that of the First Code field the second symbol index number is mapped to the First Code 1 character code the third symbol index number is mapped to the First Code 2 etc through the last symbol index number which is mapped to the value in the Last Code field The number of symbol index characters in the array must ...

Page 178: ...nd permanent user defined symbol sets 1 Delete all temporary user defined symbol sets 2 Delete current user defined symbol set last symbol set ID code specified 4 Make current user defined symbol set temporary 5 Make current user defined symbol set permanent Default n a Range 0 2 4 5 other values ignored Downloaded symbol sets default to temporary Internal symbol sets cannot be deleted or made tem...

Page 179: ...bytes in length 00 12 Header Size 18 bytes 01 55 ID code 341 decimal 10U 03 Format 3 Unicode Symbol Index 02 Font Type 2 00 01 First code 1 00 fe Last code 254 00 00 00 00 c0 40 00 01 ASCII Latin 1 and PC Characters required 26 3a character code 1 Open Happy Face 26 3b character code 2 Solid Happy Face 26 65 character code 3 Solid Heart Card Suit 26 40 character code 4 Solid Diamond Card Suit 26 6...

Page 180: ... PCL Symbol Set ID 10U Make this symbol set permanent Symbol Map Data E C c341R PCL Symbol Set ID 10U E C f528W Symbol Set 528 bytes in length 00 12 Header Size 18 bytes 01 55 ID code 341 decimal 10U 01 Format 1 MSL Symbol Index 02 Font Type 2 00 01 First code 1 00 ff Last code 255 80 00 00 02 00 00 00 00 Basic Latin and PC Characters required 00 cb character code 1 Open Happy Face 00 cc character...

Page 181: ...0 character code 32 Space Code 00 01 character code 33 Exclamation Mark M M 00 22 character code 65 Uppercase A M M 00 43 character code 97 Lowercase A M M 01 4c character code 252 Superior Lowercase N 00 c5 character code 253 Superior Numeral 2 01 31 character code 254 Small Solid Square Box 00 00 character code 255 No Break Space E C c341r5S PCL Symbol Set ID 10U ...

Page 182: ...10 16 User Defined Symbol Sets EN ...

Page 183: ...e the character definition always consists of one or more character data blocks Each character data block begins with its own character data block header The character descriptor is a block of data that identifies the characteristics for a specific character such as its position and the cursor position after printing The character data which follows defines the shape of the character This chapter ...

Page 184: ...pecific information With the information provided in the section for bitmap fonts it is possible to format a PCL bitmap character font for the printer However to format an Intellifont or TrueType scalable font additional information is required Intellifont scalable fonts are formatted to use Agfa Scaling Technology Intellifont scalable fonts are described in detail in the document Intellifont Scal...

Page 185: ... to Related Documents located in the front of this manual for information on how to obtain this document Note The documents Intellifont Scalable Typeface Format and True Type Font Files do not contain descriptions of scalable PCL fonts Instead they contain descriptions of files from which PCL fonts can be built ...

Page 186: ... 3 Figure 11 6 and Figure 11 7 The physical coordinate system is defined in terms of the directions of raster scan X and paper motion Y as illustrated in the following figure Figure 11 1 Bitmap Physical Coordinate System Note The LaserJet IID IIP 2000 and all LaserJet PCL 5 printers rotate fonts to match the paper s physical coordinate system Intellifont Scalable Fonts Characters of an Intellifont...

Page 187: ...aracter coordinates are typically based on a system of 2048 units per Em The baseline is defined by y coordinate 0 The left reference is usually defined by x coordinate 0 although there is some variation among fonts To determine the left reference line for an individual TrueType character subtract the LSB value found in the hmtx table from the xMin value found in the glyf table See True Type Font ...

Page 188: ...ded for LaserJet 4 and later printers It is included in this manual to maintain backward compatibility with earlier versions of PCL z Format 20 Font Header for Resolution Specified Bitmapped Fonts This header replaces the previous bitmap header and has the added capability to specify a font s resolution This font header is shown in Table 11 3 z Format 10 Font Header for Intellifont Bound Scalable ...

Page 189: ...Documents in the front of this manual The figures that follow illustrate the font header formats for the various font classifications The individual fields for the font headers are described following the figures Notes Although some LaserJet printer models do not use all of the data in the font header and thus ignore many of the fields a font creator should use valid values in all of the font head...

Page 190: ...ckness Height 32 Text Height 34 Text Width 36 First Code 38 Last Code 40 Pitch Extended Height Extended 42 Cap Height 44 47 Font Number M 48 63 Font Name M 64 Copyright optional Table 11 3 Format 20 Font Header for Resolution Specified Bitmapped Byte 15 MSB 8 7 LSB 0 0 Font Descriptor Size 68 2 Header Format 20 Font Type 4 Style MSB Reserved 6 Baseline Position Table 11 2 Format 0 Font Header for ...

Page 191: ... LSB 26 Typeface MSB Serif Style 28 Quality Placement 30 Underline Position Distance Underline Thickness Height 32 Text Height 34 Text Width 36 First Code 38 Last Code 40 Pitch Extended Height Extended 42 Cap Height 44 47 Font Number M 48 63 Font Name M 64 X Resolution 66 Y Resolution n Copyright optional M Table 11 3 Format 20 Font Header for Resolution Specified Bitmapped continued ...

Page 192: ...line Position 8 Cell Width 10 Cell Height 12 Orientation Spacing 14 Symbol Set 16 Pitch default HMI 18 Height 20 x Height 22 Width Type Style LSB 24 Stroke Weight Typeface LSB 26 Typeface MSB Serif Style 28 Quality Placement 30 Underline Position Distance Underline Thickness Height 32 Text Height 34 Text Width 36 First Code 38 Last Code 40 Pitch Extended Height Extended 42 Cap Height 44 47 Font Nu...

Page 193: ...font Data Size 80 Global Intellifont Data M n Copyright optional M Reserved 0 Checksum Table 11 5 Format 11 Font Header for Intellifont Unbound Scalable Fonts Byte 15 MSB 8 7 LSB 0 0 Font Descriptor Size minimum 88 2 Header Format 11 Font Type 10 4 Style MSB Reserved 6 Baseline Position 8 Cell Width 10 Cell Height 12 Orientation Spacing 14 Symbol Set Table 11 4 Format 10 Font Header for Intellifon...

Page 194: ...kness 32 Text Height 34 Text Width 36 Reserved 38 Number of Contours Characters 40 Pitch Extended Height Extended 42 Cap Height 44 47 Font Number M 48 63 Font Name M 64 Scale Factor 66 X Resolution 68 Y Resolution 70 Master Underline Position 72 Master Underline Thickness 74 OR Threshold 76 Global Italic Angle 78 85 Character Complement Table 11 5 Format 11 Font Header for Intellifont Unbound Scal...

Page 195: ...Descriptor Size minimum 72 2 Header Format 15 Font Type 4 Style MSB Reserved 6 Baseline Position 8 Cell Width 10 Cell Height 12 Orientation Spacing 14 Symbol Set 16 Pitch default HMI 18 Height 20 x Height 22 Width Type Style LSB 24 Stroke Weight Typeface LSB 26 Typeface MSB Serif Style 28 Quality Placement 30 Underline Position Distance Underline Thickness Table 11 5 Format 11 Font Header for Inte...

Page 196: ... Height Extended 42 Cap Height 44 47 Font Number M 48 63 Font Name M 64 Scale Factor 66 Master Underline Position 68 Master Underline Thickness 70 Font Scaling Technology Variety 72 additional data may be inserted here M Desc Size Segmented Font Data M 2 Reserved 0 Checksum Table 11 7 Font Header Field Data Type Notation B Boolean 0 1 UB Unsigned Byte 0 255 SB Signed Byte 128 127 UI Unsigned Integ...

Page 197: ...7 ULI Unsigned Long Integer 0 232 1 SLI Signed Long Integer 231 231 1 ASCxx ASCII string array 0 xx 1 of characters Table 11 8 Header Format Values Value Format 0 PCL Bitmap 10 Intellifont Bound Scalable 11 Intellifont Unbound Scalable 15 TrueType Scalable bound or unbound 20 Resolution Specified Bitmap Table 11 9 Font Type Values Value Font Type 0 Bound font Character codes 32 to 127 decimal are ...

Page 198: ...mal is calculated using the formula Style Word Posture 4 x Width 32 x Structure The binary structure of the Style word is shown below 2 Bound font All character codes 0 to 255 are printable except 0 7 to 15 and 27 decimal see note below 10 Unbound font Character codes correspond to HP MSL numbers for Intellifont unbound scalable fonts 11 Unbound font Character codes correspond to Unicode numbers f...

Page 199: ...or Expanded 7 Extra Extended or Extra Expanded Table 11 12 Value Structure multiply by 32 for StyleWord partial sum 0 Solid 1 Outline 2 Inline 3 Contour Distressed edge effects 4 Solid with Shadow 5 Outline with Shadow 6 Inline with Shadow 7 Contour with Shadow 8 11 Patterned complex patterns subject to type family 12 15 Patterned with Shadow 16 Inverse 17 Inverse in Open Border 18 30 Reserved 31 ...

Page 200: ...rs in a given line appear to stand see The measurement of this distance is in font resolution dots as defined in the Resolution Field of a Format 20 font header default 300 dpi Intellifont Scalable Specifies a Y coordinate in the design window refer to Figure 11 2 TrueType Scalable Baseline Position must be set to zero Cell Width UI Specifies the width of the cell The cell must be wide enough to a...

Page 201: ... orientation of the font All characters within the font must have the same orientation as those specified in the font header otherwise they are discarded as they are downloaded 0 portrait 0 degrees the orientation of the raster scan of the printer 1 landscape 90 degrees counterclockwise 2 reverse portrait 180 degrees counterclockwise 3 reverse landscape 270 degrees counterclockwise ...

Page 202: ...ng Symbol Set UI Specifies the symbol set for the font This 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 For example to compute the value for the ASCII ISO 6 symbol set Value 0 ID U 0U 0 32 85 64 21 The legal ran...

Page 203: ... of the font in quarter dots four quarter dot units also known as radix dots equal one dot It combines with Pitch Extended to specify the pitch of the font in 1024th dots Pitch defines the default HMI for the font For example a a 17 cpi font designed at 300 dpi has a pitch value of 70 radix dots as calculated The remainder 0 588 is converted back to dots and then to 1024th dots as shown below Pitc...

Page 204: ...dots radix dots 1200 quarter dots inch inch point as calculated The remainder 0 667 is converted back to dots and then to 1024th dot for a value of 170 1024th dot for the Height Extended field similar to that shown in the example for Pitch above Intellifont Scalable Specifies the master design height of the font in points A typical value for this field is 2000 TrueType Scalable Set the Height fiel...

Page 205: ...re 7 through 7 The thinnest stroke available is 7 the thickest stroke weight is 7 The standard stroke weight for a medium font is 0 the standard stroke weight for a bold font is 3 and the standard stroke weight for a light font is 3 Table 11 13 Width Type Values Value Width Type 5 Ultra Compressed 4 Extra Compressed 3 Compressed or Extra Condensed 2 Condensed 0 Normal 2 Expanded 3 Extra Expanded A...

Page 206: ...ypeface number as a single value If an exact match cannot be made the request may be ignored for selection purposes however the font select table is updated The procedure for allocating typeface numbers for the font products of various vendors however will consider the typeface number to be composed of two distinct fields a vendor field consisting of the four most significant bits and a typeface f...

Page 207: ...ly Values are calculated according to the following formula Example The HP typeface number for Agfa Dom Casual typeface is 4157 vendor value 1 and typeface value 61 61 1 4096 4157 Table 11 15 Typeface Family Value Current 15 12 11 0 Vendor Typeface Family Table 11 16 Current Vendor Number Values Value Vendor 0 Reserved 1 Agfa Division Miles Inc 2 Bitstream Inc 3 Linotype Company 4 The Monotype Cor...

Page 208: ...d to specify the vendor number a 2 bit field for the version number and a 9 bit field which contained the typeface base number The most significant bit of the MSB was always zero Vendor Version The Vendor version bits 10 and 9 value was from 0 to 3 It changed when the vendor changed the width or design of the characters in a font Table 11 17 Typeface Family Value Previous 15 14 10 8 0 0 Vendor Ver...

Page 209: ...map fonts use the smaller typeface base value Serif Style UB Specifies one of the following defined serif styles Serif Style values 0 63 the lower six bits of the style field are ignored by the printer for bitmap fonts However the upper two bits bits 6 and 7 are used by a scalable font header to determine the serif style of the typeface insensitive characters to complement the font Serif style val...

Page 210: ...re listed in the following table Scalable Font Set the Placement field to zero 11 Script Calligraphic 12 Script Broken Letter 13 63 Reserved Values for bits 6 7 64 Sans Serif 128 Serif 192 Reserved Table 11 20 Quality Values Value Quality 0 Data processing draft 1 Near Letter Quality 2 Letter Quality Table 11 21 Bitmap Font Placement Values Value Placement 1 Superior 0 Normal 1 Inferior Table 11 1...

Page 211: ...ness of the underline in font design dots for a bitmap font Bitmap Font A bitmap font prints three dot thick underlines at 300 dpi six dot thick at 600 dpi Scalable Font Set Underline Thickness to zero The Master Underline Thickness field see below identifies this information for scalable fonts Text Height UI Specifies the font s optimum inter line spacing This value is typically equal to 120 of t...

Page 212: ... the symbol set but must be downloaded The printable codes are implied by the font type refer to first code described above Unbound Font For an unbound font type 10 or 11 this field specifies the maximum number of characters that can be down loaded into the font Pitch Extended UB Bitmap Font This is an addition to the Pitch field which extends the pitch an extra eight bits The value of this field ...

Page 213: ... Refer to the Pitch description above Scalable Font Set The Height Extended field to zero Cap Height UI Cap Height is a percentage of the Em of the font and is used to calculate the distance from the capline top of an unaccented uppercase letter such as an H to the baseline Bitmap Font Fonts containing a 0 in this field are assumed to have a cap height percentage of 70 87 of Em Em being a measure ...

Page 214: ... decimal value for the first initial of the font vendor s name this is assigned by Hewlett Packard The following initials have been assigned For example the number that Agfa assigns for a CG Times Bold Italic native format font is 92505 This number is converted to hexadecimal and used for the lower three bytes of the Font Number Bit 8 of byte 44 is 0 since the native format is used and the lower s...

Page 215: ...s used in the Typeface List or Font List printout under Name or Typeface if the printer does not have a name string assigned to the typeface family code in its font selection table X Resolution UI The X Resolution field is the pixel resolution in the X scan direction at which the font was designed Note This field is not present in the Format 15 Font Header and is not necessary for TrueType fonts ...

Page 216: ...for TrueType and Intellifont scalable soft fonts Master Underline Position SI The Master Underline Position is the top of the PCL floating underline with respect to the baseline in design units Note For scalable fonts the Master Underline Position field replaces the 1 byte Underline Position field Master Underline Thickness Height UI The Master Underline Thickness field defines thickness of the fl...

Page 217: ...d to zero for upright fonts For detailed information on Global Italic Angle refer to Intellifont Scalable Typeface Format Global Intellifont Data Size UI The Global Intellifont Data Size identifies the size of the Global Intellifont data block For detailed information about Global Intellifont Data Size refer to Intellifont Scalable Typeface Format Global Intellifont Data For detailed information o...

Page 218: ...r Cyrillic fonts 52 54 Reserved for Arabic fonts 50 51 Reserved for Greek fonts 48 49 Reserved for Hebrew fonts 3 47 Miscellaneous uses South Asian Armenian other alphabets bar codes OCR Math PC Semi graphics etc 0 2 Symbol Index field 111 MSL Symbol Index Table 11 26 Unicode Symbol Index Bit Field Designated Use 32 63 Miscellaneous uses South Asian Armenian other alphabets bar codes OCR Math etc ...

Page 219: ... font has access to the semi graphic characters of the PC 8 PC 850 etc character sets 1 otherwise 32 0 if font is compatible with ITC Zapf Dingbats series 100 200 etc 1 otherwise 2 1 0 111 if font is arranged in MSL Symbol Index order Table 11 28 Unicode Symbol Index Character Complement Bits Bit Value 31 0 if font is compatible with 7 bit ASCII 1 otherwise 30 0 if font is compatible with ISO 8859...

Page 220: ...tandard Encoding PS Text 1 otherwise 22 0 if font is compatible with Code Pages e g PC 8 PC 850 PC Turk etc 1 otherwise 2 1 0 110 if font is arranged in Unicode Symbol Index order Table 11 29 Bit Field Designated Use Value hex Meaning MSL 0000000000000000 Default complement font is compatible with any character set 7fffffffffffffff Font is indexed in MSL and is compatible only with standard West L...

Page 221: ...is optional Note In the Format 15 Font Header for TrueType Scalable Fonts this field is located in the Segmented Font Data section immediately following the descriptor data See Segmented Font Data later in this chapter Segmented Font Data Format 15 The Segmented Font Data section immediately follows the main body of a Format 15 Header for TrueType Scalable Fonts Each segment contains three parts a...

Page 222: ...entifier x 2 First segment Segment Size x 4 M First segment Data Segment M x 4 1st seg size Second segment Segment Identifier Size Data Segment M M M 6 Null Segment Identifier FFFF hex 4 Null Segment Size 0 2 Reserved Checksum x Font Descriptor Size Font header length as defined in Font Header command Table 11 31 Value Mnemonic Data Segment 17219 CC Character Complement 17232 CP Copyright 18260 GT...

Page 223: ... used by the TrueType font scaler Every TrueType font needs to have this segment The Table Directory is patterned after the initial segment of the TrueType font file as described in True Type Font Files The Table Directory has a 12 byte header and 16 bytes per entry in the Table Directory The Table Directory is organized in alphabetical order by the 4 byte table names For each entry there is an of...

Page 224: ...th may be used for the purpose of font selection and substitution Its definition continues to evolve A 10 field 10 byte version sufficient for the description of most Latin fonts appears under the OS 2 table in True Type Font Files PF PS Compatible Font Name Reserved for future use XW x windows font name This ASCII field contains standard X Windows font names Checksum The value of this byte when a...

Page 225: ...nt ID to 1 E C s W 64 bytes of font descriptor data x bytes of optional data An example of the bitmap header is shown on the following page Table 11 32 FIELD NAME VALUE DESCRIPTION Font Descriptor Size 64 Bytes Header Format 0 Bitmap Font Format Font Type 1 Eight Bit Style MSB 0 Reserved 0 Baseline Position 40 Cell Width 30 Cell Height 53 Orientation 0 Portrait Spacing 0 Fixed Pitch Symbol Set 277...

Page 226: ...t 0 Medium Typeface LSB 3 Body Text Typeface MSB 0 No Font Vendor ID Serif Style 2 Serif Line Quality 0 empty Placement 0 empty Underline Position 10 empty Underline Thickness 3 empty Text Height 200 Quarter dots 50 00 Dots Text Width 120 Quarter Dots 30 00 Dots First Code 33 empty Last Code 254 empty Pitch Extended 0 empty Height Extended 0 empty Cap Height 36713 56 02 of Em Font Number 0 No Font...

Page 227: ... 0 not defined for Intellifont Orientation 0 not defined for scalable fonts Spacing 1 Proportional Symbol Set 277 8U Roman 8 Pitch 2602 29 63 Em Default HMI Design Height 2000 250 Points 8 x Height 4009 45 65 Em 68 52 Cap Height Appearance Width 0 Normal Style LSB 0 Upright Normal Width Solid 0 0 0 Stroke Weight 0 Medium or Text Weight Typeface LSB 5 Times Roman generic design family Typeface MSB ...

Page 228: ... Code 273 Compound Pieces Present n255 Pitch Extended 0 not defined for scalable fonts Height Extended 0 not defined for scalable fonts Cap Height 5851 66 7 Em Font Number hex 43 01 69 54 Native Agfa CG Times 0 C 92500 Font Name CG Times 16 character ACSII field Scale Factor 8782 X Resolution 2540 Y Resolution 2540 Master Underline Position 1747 Master Underline Thickness 449 OR Threshold 176 Glob...

Page 229: ...ader Examples 11 47 Global Intellifont Data 112 bytes added to header data Copyright Statement optional x bytes added to header data Application Support optional x bytes added to header data Table 11 33 continued ...

Page 230: ...ter Code command must be designated prior to the download of a character descriptor and data If the font being downloaded already contains a character with this code the existing character is deleted during the download of the character descriptor and data Unless otherwise specified inappropriate values in a character descriptor field invalidates the character download process a character is not c...

Page 231: ...e the character for printing E C c E character code Default 0 Range 0 65535 Notes For unbound fonts the character code for a given character equals its symbol index value For TrueType fonts a special code must be used to download glyphs which never stand alone as characters FFFF hex should be used for this purpose Example To designate the character code for an ASCII lower case p send E C c112E ...

Page 232: ...k The maximum number is 32767 For a detailed description of the Character Descriptor fields for bitmap fonts refer to Character Descriptor and Data Format for PCL Bitmap Fonts For Intellifont scalables refer to Character Descriptor and Data Format for Intellifont Scalable Fonts For TrueType fonts refer to Character Descriptor and Data Format for TrueType Fonts Note Examples for defining a bitmappe...

Page 233: ...cter is at least 14 bytes long and contains information such as the character s width and height The character data is binary raster data that identifies the shape of the character Table 11 35 shows the format of the bitmap character descriptor and data Table 11 34 Character Descriptors Data Continuation Block B Boolean 0 1 UB Unsigned Byte 0 255 SB Signed Byte 128 127 UI Unsigned Integer 0 65535 ...

Page 234: ...vice the character is discarded 6 Left Offset 8 Top Offset 10 Character Width 12 Character Height 14 Delta X 16 Raster Character Data in bytes M Table 11 36 PCL Bitmap Continuation Character Descriptor and Data Format Byte 15 MSB 8 7 LSB 0 0 Format 4 Continuation non zero 2 Raster Character Data in bytes M Table 11 37 Value Format 4 LaserJet Family Raster 10 Intellifont Scalable 15 TrueType Scalab...

Page 235: ...7 bytes characters whose byte count exceed this must be sent in two or more blocks Descriptor Size UB This is the first byte of the character descriptor It specifies the size of the character descriptor in bytes The descriptor size used by the HP LaserJet printer family for bitmap fonts is 14 Class UB Specifies the format of the character data For bitmap fonts only values 1 and 2 are used as descr...

Page 236: ...r the data is composed of a string of bytes using a run length encoding with line repetition compressed format see Figure 11 2 The first byte indicates the number of times the first raster row is repeated after its initial occurrence It is assumed that the first pixel in a row is white hence the second byte indicates how many white pixels start the row The third byte indicates how many black pixel...

Page 237: ...EN Character Descriptor Formats 11 55 Figure 11 5 Class 2 Character Data ...

Page 238: ...see Figure 11 6 and Figure 11 7 PCL 5 printers support kerning both negative left and right side bearings of both fixed pitch and proportionally spaced fonts Note that large offsets could place the character off the printable area of the page causing the character to be clipped The legal range for the left offset is 16384 to 16384 dots Top Offset SI Top offset specifies the distance in dots from t...

Page 239: ...haracter in dots on the physical coordinate system Character height is orientation dependent The legal range for character height is 1 to 16384 dots Delta X SI Delta X specifies the number of quarter dots radix dots by which the horizontal position within the logical page coordinate system is incremented after printing the character This value is only used by the printer when the font is proportio...

Page 240: ...11 58 Soft Font Creation EN Figure 11 6 Portrait Character Example ...

Page 241: ...EN Character Descriptor Formats 11 59 Figure 11 7 Landscape Character Example ...

Page 242: ...d Data Format Byte 15 MSB 8 7 LSB 0 0 Format 10 Continuation 0 1 1 Continuation is supported for classes 1 2 3 and 15 only 2 Descriptor Size Class 3 4 Contour Character Data in bytes M see Table 11 41 for Contour Character Data 2 Reserved 0 Checksum2 2 These bytes appear only on the last continuation Table 11 41 Intellifont Scalable Contour Data Format Byte 15 MSB 8 7 LSB 0 4 Contour Data Size 6 M...

Page 243: ... 3 only 2 Contour Character Data resumed in bytes see Table 11 41 M 2 Reserved Checksum2 2 This byte appears only on the last continuation Table 11 43 Intellifont Scalable Compound Character Descriptor and Data Format Byte 15 MSB 8 7 LSB 0 0 Format 10 Continuation 0 2 Descriptor Size Class 4 4 Compound Character Escapement 6 Number of Components 8 Component List M see Table 11 46 for Component Lis...

Page 244: ...n which has already been received by the printer Because the value field in a Character Definition command is limited to 32767 bytes characters whose byte count exceed this must be sent in two or more blocks Table 11 42 shows the continuation block for an Intellifont Scalable font Descriptor Size UB This is the first byte of the character descriptor It specifies the size of the character descripto...

Page 245: ... organized as described in Table 11 43 The compound descriptor allows combining two different characters to produce a single compound character Contour Data Size UI The size of the contour data including the size of this field For a detailed description of this field refer to Intellifont Scalable Typeface Format Metric Data Offset SI The offset to the Metric Data relative to the address of the Con...

Page 246: ...alable Typeface Format document Character Intellifont Scalable Data For information about Character Intellifont Scalable Data refer to Intellifont Scalable Typeface Format Contour Tree Data For information about Contour Tree Data refer to Intellifont Scalable Typeface Format XY Coordinate Data For information about XY Coordinate Data refer to Intellifont Scalable Typeface Format Note For informati...

Page 247: ...int origin in the x direction in design units Y offset is the offset in the y direction of a component from the reference point origin in design units Note The character code may be greater than the last code of the symbol set that is implied by the font type since a compound character can include components that are not part of the symbol set Character Descriptor and Data Format for TrueType Font...

Page 248: ...ptor data may be inserted here 2 Desc Size Character Data Size 4 Desc Size Glyph ID 6 Desc Size TrueType Glyph Data M 2 Reserved Checksum Character data block size as defined in Character Definition command Table 11 48 Byte 15 MSB 8 7 LSB 0 0 Format 15 Continuation 0 2 Descriptor Size Class 15 4 additional descriptor data may be inserted here 2 Desc Size Character Data Size 4 Desc Size Glyph ID ...

Page 249: ...of TrueType Glyph Data M Table 11 49 TrueType Character Descriptor multiple character data blocks Byte 15 MSB 8 7 LSB 0 0 Format 15 Continuation 1 2 conclusion of TrueType Glyph Data M 2 Reserved Checksum Character data block size as defined in Character Definition command Table 11 50 Value Format 4 LaserJet Family Raster 10 Intellifont Scalable 15 TrueType Scalable These are described elsewhere i...

Page 250: ...ter Data Size field The TrueType character descriptor includes this Descriptor Size byte plus the following Class byte The minimum value for Descriptor Size is therefore 2 Additional descriptor information if any can be added immediately after the Class byte Class UB This field is used to distinguish different character data types within a given character format For instance among Intellifont char...

Page 251: ... downloaded scalable TrueType character is that the sum of the values for all of that character s data blocks equals the sum of the Descriptor Size and Character Data Size and 2 for Reserved and Checksum plus 2 times the number of character data blocks for Format and Continuation bytes Glyph ID UI This field is used by the TrueType font scaler as an ID number for the glyph data associated with the...

Page 252: ... Header 14 bytes of Character Descriptor and 124 bytes of Character Data Since the Character Width is 26 dots 4 bytes are needed per raster row Also since the Character Height is 31 dots 124 bytes of Character Data for a Class 1 character is needed 4 31 124 No continuation block is to be expected Table 11 52 Character Format Continuation and Descriptor FIELD NAME VALUE DESCRIPTION Format 4 LaserJe...

Page 253: ...30 0 3 192 10 00011100 00000000 00000001 11000000 28 0 1 192 11 00011100 00000000 00000001 11000000 28 0 1 192 12 00011100 00000000 00000001 11000000 28 0 1 192 13 00011100 00000000 00000001 11000000 28 0 1 192 14 00011100 00000000 00000001 11000000 28 0 1 192 15 00011110 00000000 00000001 11000000 30 0 1 192 16 00011110 00000000 00000011 11000000 30 0 3 192 17 00011110 00000000 00000011 10000000 ...

Page 254: ...000000 28 0 0 0 28 00011100 00000000 00000000 00000000 28 0 0 0 29 11111111 11111100 00000000 00000000 255 252 0 0 30 11111111 11111100 00000000 00000000 255 252 0 0 31 11111111 11111100 00000000 00000000 255 252 0 0 Table 11 53 Portrait Character Data Example continued Table 11 54 Character Format Continuation and Descriptor FIELD NAME VALUE DESCRIPTION Format 4 LaserJet Printer Family Continuati...

Page 255: ...5 0 10 11100000 00000000 00000111 00000000 224 0 7 0 11 11100000 00000000 00000111 00000000 224 0 7 0 12 11100000 00000000 00000111 00000000 224 0 7 0 13 11100000 00000000 00000111 00001110 224 0 7 14 14 11100000 00000000 00000111 00001110 224 0 7 14 15 01110000 00000000 00001110 00001110 112 0 14 14 16 01110000 00000000 00001110 00001110 112 0 14 14 17 00111000 00000000 00011100 00001110 56 0 28 ...

Page 256: ...11 74 Soft Font Creation EN 25 01110000 00000000 00000000 00001110 112 0 0 14 26 01110000 00000000 00000000 00001110 112 0 0 14 Table 11 55 Landscape Character Data Example continued ...

Page 257: ... initiates the command sequence to print the letterhead Note HP GL 2 commands are not supported within macros on all HP LaserJet printers Refer to the PCL Feature Support Matrix in Chapter 1 of the PCL 5 Comparison Guide for specifics Macros eliminate the need to download the same information repeatedly thus saving transmission time However the trade off is that they consume user memory If memory ...

Page 258: ...wlett Packard provides a service to assist you by developing these custom products For information contact Hewlett Packard Boise Printer Division Attention Product Specials 11311 Chinden Blvd Boise ID 83714 208 323 3684 ...

Page 259: ...nd Macro command is sent to the printer to indicate the end of the macro definition To invoke a macro send the Macro ID command with the ID number of the macro then send the Macro Control command with a value field of 2 3 or 4 E C f2X E C f3X or E C f4X This performs the macro in the specified mode Execute value field 2 Call value field 3 or Overlay value field 4 Refer to the following section Mac...

Page 260: ...a macro call are recorded in the modified print environment however these changes are not retained upon completion of the macro call The modified print environment that existed prior to the macro call is restored When a macro is enabled for automatic overlay its execution is the final operation each time a page is printed Before the macro is performed the current modified print environment is save...

Page 261: ... Macros During its definition a macro is automatically designated as temporary A temporary macro is deleted from user memory during a printer reset A macro can be designated as permanent to prevent the printer from deleting it during a printer reset A macro is designated as temporary or permanent by reference to its ID number using the Macro Control command described later in this chapter Note Tem...

Page 262: ... number using the Macro Control command described later in this chapter Both temporary and permanent macros are deleted from memory whenever the printer s power is turned off Macro ID The Macro ID command specifies an ID number for use in subsequent macro commands E C f Y Macro ID number Default 0 Range 0 32767 This number is used in subsequent macro operations The factory default macro ID is 0 Ex...

Page 263: ...ters Refer to the PCL Feature Support Matrix in Chapter 1 of the cguide for specifics HP GL 2 commands as well as the PCL command Enter HP GL 2 mode E C B and the PCL picture frame directives are not recommended within a macro PCL macro control commands are not allowed while in HP GL 2 context Table 12 3 0 Start macro definition last ID specified 1 Stop macro definition 2 Execute macro last ID spe...

Page 264: ...ownloaded macro must be deleted z The ID numbers for ROM based macros range from 0 32767 z In case of conflicting ID numbers in ROM based macros the following priorities apply 1 Cartridge macros In printers that have two cartridge slots one cartridge has priority over the other This priority depends on the printer Refer to Appendix E of the PCL 5 Comparison Guide for the macro cartridge priority 2...

Page 265: ...e Macro ID as one E C f0X Start Macro Definition E C a540h360V Position logo at 540 360 decipoints in the PCL coordinate system E C t150R Set graphics resolution to 150 dots per inch E C r1A Start raster image of logo E C b60W Raster data Send the first raster line E C b60W Raster data Send the last raster line E C rC Stop raster graphics E C a540h780V Position for lettering at 540 780 decipoints ...

Page 266: ...tion first rule at 540 960 decipoints E C c10v4680H Set rule height and width E C c0P Print the first rule E C a540h980V Position second rule at 540 980 decipoints E C c zero P Print second rule E C a54 zero h12 zero zero V Position for first line of text at 540 1200 decipoints E C f1X Stop Macro Definition Table 12 4 continued ...

Page 267: ...ed in Chapter 14 PCL Rectangular Area Fill Graphics or a character or characters selected from any font Print model operation defines a pattern source image and destination image These images are applied to each other using the print model s transparent and opaque modes to produce a resulting image that is a combination of the others The print model features listed below are illustrated in Figure ...

Page 268: ...0 black The current pattern does not always apply to rectangular area fill which uses patterns defined by the rectangular area fill pattern commands Refer to Transparency Mode and Rectangular Area Fills at the end of this chapter for additional information Source Image An image in which the black 1 bits are replaced by the specified pattern This is like a stencil through which the pattern is appli...

Page 269: ...also transparent the patterned source image is applied only to the white areas of the destination image In the second example 1b the source mode is still transparent but the pattern mode is opaque so the pattern s white pixels are applied to the destination The resulting image shows the entire circle region visible and patterned In the third example 1c the source mode is opaque and the pattern mod...

Page 270: ...13 4 The PCL Print Model EN Figure 13 3 Effect of Transparency Modes on Images ...

Page 271: ...image Select Transparency Modes E C v N and or E C v O Select Specific Pattern ID Pattern ID E C c G and Select Pattern E C v T redefines current pattern Download Page Data Source Image data Raster image characters Return to regular print mode Default current pattern and transparency modes E C v0T 100 black pattern selected and E C v0N E C v0O transparency modes selected Download remaining page da...

Page 272: ...er values cause the command to be ignored With a transparency mode of 0 transparent the white regions of the source image are not be copied onto the destination With a transparency mode of 1 opaque the white pixels in the source are applied directly onto the destination Refer to the preceding definitions and the discussion of Figure 13 3 for an explanation of the effects of transparency End of Pag...

Page 273: ...ansparent means that the white regions of the pattern image are not copied onto the destination A transparency mode of 1 opaque means that the white pixels in the pattern are applied directly onto the destination Note When printing white rules the pattern transparency is treated as if it were opaque white rules erase black rules regardless of the transparency mode Refer to the preceding definition...

Page 274: ...her images the pattern material is determined by the pattern ID and the value of the Select Pattern command Figure 13 4 and Figure 13 5 illustrate the HP defined shading patterns and cross hatched patterns respectively Table 13 2 Selecting Shaded patterns Selecting Cross Hatch patterns 1 thru 2 1 2 shade 1 Pattern 1 3 thru 10 3 10 shade 2 Pattern 2 11 thru 20 11 20 shade 3 Pattern 3 21 thru 35 21 ...

Page 275: ...it is also described in Chapter 14 PCL Rectangular Area Fill Graphics It is duplicated here for convenience For user defined patterns this command sent prior to downloading a user defined pattern assigns an ID pattern number to the downloaded pattern For more information see User Defined Graphics later in this chapter ...

Page 276: ...13 10 The PCL Print Model EN Figure 13 4 Shading Patterns ...

Page 277: ...EN Pattern ID Area Fill ID Command 13 11 Figure 13 5 Cross Hatch Patterns ...

Page 278: ... pattern Figure 13 5 or user defined pattern number is identified by the Pattern ID command described earlier in this chapter Notes For selecting or changing the current pattern the Select Current Pattern E C v T and the Pattern ID E C c G commands work together Sending the current pattern Select Current Pattern command alone does not change the current pattern the Pattern ID must be sent first Ho...

Page 279: ...nary raster data image as a base pattern This base pattern is downloaded to the printer using the User Defined Pattern command Prior to downloading the pattern a Pattern ID command is sent to assign the user pattern an ID number This ID number is used to select the pattern for printing and for pattern management To apply the pattern to an image the printer duplicates or tiles like placing ceramic ...

Page 280: ...e pattern reference point to the current cursor position This allows the pattern to be positioned or adjusted for fill areas The pattern reference point may be shifted more than once for as many fill areas as there are on a page the area must be filled before the tile point is moved for the next fill area Figure 13 8 shows two areas filled with the pattern reference point fixed at the default 0 0 ...

Page 281: ...EN User Defined Pattern Graphics 13 15 Figure 13 8 Moving Pattern Reference Point for Pattern Filling ...

Page 282: ...in this pattern data The format for a 300 dpi resolution header is shown in Table 13 3 below With the introduction of the LaserJet 4 printer user defined patterns can be printed either 300 or 600 dpi resolution X Resolution and Y Resolution fields have been added to the header information included in the previous header The format for the new header is shown in Table 13 4 below Table 13 3 User Def...

Page 283: ...ber to the user pattern the existing current pattern ID value is used If a pattern is already associated with the ID that pattern is replaced with the new pattern Format Byte 0 This field byte 0 must be set to 0 Continuation Byte 1 This field byte 1 must be set to 0 This byte is for future printer support and does not currently provide any continuation operation Pixel Encoding Byte 2 This field by...

Page 284: ...s Bytes 6 and 7 This field bytes 6 and 7 identifies the number of pixels width of the pattern Pattern Image This field contains the raster data for the pattern Master X Resolution UI The Master X Resolution field is the pixel resolution in the X scan direction at which the pattern was designed Master Y Resolution UI The Master Y Resolution field is the pixel resolution in the Y scan direction at w...

Page 285: ...1111000 00001111111111111111111111110000 00000111111111111111111111100000 00000011111111111111111111000000 00000001111111111111111110000000 00000000111111111111111100000000 00000000011111111111111000000000 00000000001111111111110000000000 00000000000111111111100000000000 00000000000011111111000000000000 00000000000001111110000000000000 00000000000000111100000000000000 00000000000000011000000000000...

Page 286: ...0 00 hex Byte 4 5 Height in Pixels 0 16 00 10 hex Byte 6 7 Width in Pixels 0 32 00 20 hex Byte eight begins the first bytes of binary data The PCL code below downloads the user defined pattern and assigns it an ID number of 3 1 Specify the pattern ID number E C c3G Assigns an ID number of 3 to the pattern data which follows 2 Send the User defined Pattern command E C c72W Specifies that 72 bytes a...

Page 287: ...e previous example is printed within a rectangular area in Chapter 14 under Rectangular Area Fill Examples In the previous example the raster data code is presented in hexadecimal however the numbers in the escape sequences are decimal Table 13 6 00 00 01 00 00 10 00 20 FF FF FF FF 7F FF FF FE 3F FF FF FC 1F FF FF F8 0F FF FF F0 07 FF FF E0 03 FF FF C0 01 FF FF 80 00 FF FF 00 00 7F FE 00 00 3F FC ...

Page 288: ... A value field of 0 rotates the patterns with changes in the print direction see Print Direction command For a value field of 1 patterns remain fixed for changes in print direction The default pattern reference point is the upper left corner of the logical page at the top margin position 0 0 If the Set Pattern Reference Point command is not set the pattern is tiled with respect to the default refe...

Page 289: ... Delete all temporary patterns 2 Delete pattern last ID specified 3 Reserved 4 Make pattern temporary last ID specified 5 Make pattern permanent last ID specified Default 0 Range 0 5 values outside the range are ignored For value fields 2 4 and 5 the Pattern ID E C c G command is sent prior to the Pattern Control command to identify the specific pattern for the Pattern Control command action ...

Page 290: ...13 24 The PCL Print Model EN ...

Page 291: ... cursor move commands and specify the dimension of the area using the horizontal and vertical rectangle size commands The cursor identifies the upper left corner of the rectangular fill area Once the rectangle size and position are identified select the specific pattern shading level Figure 14 1 cross hatch pattern Figure 14 2 or user defined pattern to be used for filling the rectangular area Fin...

Page 292: ...tern Fill Rectangular Area Command E Cc P 1 This ends the procedure and prints the patterned area Note An area s width extends in the positive X direction of the PCL coordinate system and the height extends in the positive Y direction The Pattern Transparency Mode controls how a pattern fills a rectangular area Pattern Transparency Mode determines what effect transparent or opaque the white pixels...

Page 293: ...08 dots in 300 dpi mode is converted to 3 dots Horizontal Rectangle Size PCL Units Command This Horizontal Rectangle Size command specifies the rectangle width in PCL Units E C c A Number of PCL Units Default 0 Range 0 32767 For example if the unit of measure is set to 300 units per inch to specify a two inch wide rectangle send the command E C c600A The same command specifies a one inch wide rect...

Page 294: ... in 300 dpi mode is converted to 3 dots Vertical Rectangle Size PCL Units Command This Vertical Rectangle Size command specifies the rectangle height in PCL Units E C c B BLD Number of PCL Units Default 0 Range 0 32767 For example if the unit of measure is set to 300 units per inch to specify a two inch high rectangle send the command E C c600A The same command specifies a one inch high rectangle ...

Page 295: ...e eight shading patterns use any value within the value field range for the desired shade For example to select the 56 80 shade shown in Figure 14 1 use a value of 56 or 80 or any value in between such as 73 Table 14 1 Selecting Shaded Patterns Selecting Cross Hatch patterns 1 thru 2 1 2 shade 1 Pattern 1 3 thru 10 3 10 shade 2 Pattern 2 11 thru 20 11 20 shade 3 Pattern 3 21 thru 35 21 35 shade 4 ...

Page 296: ...ure 14 2 For user defined patterns this command sent prior to downloading a user defined pattern assigns an ID pattern number to the downloaded pattern For more information see User defined Pattern Graphics in Chapter 13 Note This command works in conjunction with the Fill Rectangular Area Command described next in this section and the Select Current Pattern Command described in Chapter 13 ...

Page 297: ...EN Pattern ID Area Fill ID Command 14 7 Figure 14 1 Shading Patterns ...

Page 298: ...14 8 PCL Rectangular Area Fill Graphics EN Figure 14 2 Cross hatch Patterns ...

Page 299: ...ecified by the Pattern ID command User defined fill fills the rectangular area with custom pattern data as specified by the Pattern ID command and downloaded by the User Defined Pattern command Current Pattern fills the rectangular area with the current pattern Notes The order in which data patterns rules text raster is received is the order in which it is processed during the rasterization of the...

Page 300: ...these boundaries Addressable rectangular areas are limited to the logical page Rectangular areas that extend outside the logical page are clipped at the logical page boundaries refer to Figures 2 3 and 2 4 for logical page and printable area boundary specifications Transparency mode described in Chapter 13 controls how the area fill pattern is applied to the page Refer to the following section for...

Page 301: ...de determines the effect white pixels of the pattern have on the destination for value fields 0 black fill 2 shaded fill 3 cross hatch fill or 5 current pattern fill of the Fill Rectangular Area command The 0 bits of the area fill are either applied opaque or ignored transparent based on the transparency mode setting see Figure 14 3 When a value field of 1 white fill is used pattern transparency m...

Page 302: ...14 12 PCL Rectangular Area Fill Graphics EN Figure 14 3 Effect of Transparency Modes on Rectangular Areas ...

Page 303: ...ide the black rectangle perform the following steps 1 1 Position the cursor E C p300x400Y This moves the cursor to PCL Unit position 300 400 within the PCL coordinate system 2 2 Specify the width of the rule E C c900A This sets the rule width to 900 PCL Units 3 inches at 300 units per inch 3 3 Specify the height of the rule E C c1500B This sets the rule height to 1500 PCL Units 5 inches at 300 uni...

Page 304: ...olid Fill Example Shaded Fill To print a 900 by 1500 Unit 25 shaded rectangle 3 inches by 5 inches at 300 units per inch perform the following steps 1 Position the cursor E C p300x400Y This moves the cursor to PCL Unit position 300 400 within the PCL coordinate system 2 Specify the width of the rectangle E C c900A This sets the rectangle width to 900 PCL Units 3 Inches at 300 units per inch ...

Page 305: ... rectangle E C c1500B This sets the rectangle to 1500 PCL Units 5 inches at 300 units per inch 4 Specify the Pattern ID E C c25G This sets the Pattern ID to 25 1 Print the rectangular shaded area E C c2P This example prints the following Figure 14 5 Shaded Fill Example ...

Page 306: ... C p300x400Y Moves the cursor to PCL Unit position 300 400 within the PCL coordinate systems 2 Specify the width of the rectangle E C c900A Sets the rectangle width to 900 PCL Units 3 inches at 300 units per inch 3 Specify the height of the rectangle E C c1500B Sets the rectangle height to 1500 PCL Units 5 inches at 300 units per inch 4 Specify the Pattern ID E C c1G Sets the Pattern ID to 1 5 Pri...

Page 307: ...le we will print the pattern of triangles which was downloaded in the example in Chapter 13 under User Defined Pattern Command The following commands define a 600 PCL Unit square rectangular area select ID number 3 and print the user defined pattern associated with that ID number 1 Position the cursor E C p300x400Y Moves the cursor to PCL Unit position 300 400 within the PCL coordinate systems 2 S...

Page 308: ...th and height both to 600 PCL Units 2 x 2 inches at 300 Units inch 3 Specify the Pattern ID E C c3G Sets the Pattern ID to 3 4 Print the user defined pattern filled area E C c5P This example prints as shown in Figure 14 7 Figure 14 7 User Defined Pattern Fill Example ...

Page 309: ...dot high strip of the image Each dot position within a row is represented by a binary data bit If a bit in a row is set to one a dot is printed if the bit is set to zero no dot is printed for that position A dot row of raster image data is transferred to the printer as a string of bytes containing a dot per bit representation of the row Figure 15 1 Binary Raster Data Since it takes a considerable ...

Page 310: ...techniques which utilize a defined raster area The raster area is defined by a width and height which are set using the Raster Width and the Raster Height commands Zeroed rows at the top and within the raster image can be eliminated by using the Y offset feature Y Offset identifies how many rows to skip zero fill The Y offset command specifies the Y offset or number of rows for the printer to fill...

Page 311: ...presents a boundary Within this boundary the printer zero fills missing rows and fills in short rows to the edge of the raster area However in addition to filling to the boundaries of the raster area the printer also clips any raster line which extends beyond the boundary Thus if an image extends beyond the raster area then that portion of the image is not printed When the raster area reduction te...

Page 312: ...mmand sequence is that the Raster Presentation Mode Raster Resolution Raster Height and Raster Width are all set outside the start data end sequence of commands Also the entire image is sent during the start data end sequence choosing the most effective compression method for each raster row of data Table 15 1 Raster Presentation Raster Resolution Raster Height Raster Width Start Raster Graphics Y...

Page 313: ...nd again or reset to default values by a soft reset self test font printout or power cycle Note Only raster data appearing within the intersection of the logical page the printable area the raster width and height is printed If raster width and or raster height have not been set are defaulted then the intersection of the logical page and the printable area determines where raster graphics appear r...

Page 314: ...lt resolution is 75 dots per inch Note Lower resolution graphics occupy less user memory For example the number of bits required to represent a two inch by three inch image at 75 dots per inch is 33 750 The same image at 300 dots per inch requires 540 000 bits When configured for 300 dpi resolution the printer automatically expands raster graphics transferred at resolutions less than 300 dots per ...

Page 315: ...he maximum resolution regardless of the resolution setting When configured for 600 dpi resolution the printer automatically expands raster graphics transferred at resolutions less than 600 dots per inch to 600 dots per inch during printing illustrates how a single bit is translated into the corresponding printed dots in various graphics resolutions when the printer is configured for 600 dpi Figure...

Page 316: ...gical page orientation In portrait orientation a raster row is printed in the positive X direction of the PCL coordinate system and a subsequent raster row is printed beginning at the next dot row position in the positive Y direction In landscape orientation a raster row is printed in the positive Y direction of the PCL coordinate system and a subsequent raster row is printed beginning at the next...

Page 317: ...on Mode Command 15 9 Figure 15 5 Raster Graphics Presentation Mode for Portrait Orientation 3 landscape 50 dots in from the logical page top bound 3 reverse landscape 50 dots in from the logical page top bound Table 15 2 continued ...

Page 318: ...15 10 Raster Graphics EN Figure 15 6 Raster Graphics Presentation Mode for Landscape Orientation ...

Page 319: ...t command the row outside the boundary is clipped This includes the case where the cursor is moved beyond the height boundary with a Raster Y Offset command and the printing of raster data is attempted If you have specified either a raster height or a raster width of 0 and a Start Raster Graphics or Transfer Raster Data command is received then the entire raster graphic is clipped If both a raster...

Page 320: ...er Graphics EN Upon receiving an End Raster Graphics E C rC command the cursor position is set to the left graphics margin of the next raster row after the raster height boundary Figure 15 7 Maximum Raster Height ...

Page 321: ...raphics margin Greater values default to the logical page width left graphics margin This command allows you to implicitly tell the printer to pad raster rows that are not specified for the full raster width with zeros Unspecified data maps to either white or transparent depending on the source transparency mode When a Transfer Raster Data command is received that specifies a row of data that is l...

Page 322: ...ues outside the range default to 0 A value of 0 specifies that the left graphics margin is at the default left margin of the page X position 0 A value of 1 specifies that the left graphics margin is at the current X position In presentation mode 3 the location of the left graphics margin varies depending on the orientation Once a Start Raster Graphics command is received by the printer raster grap...

Page 323: ...aphics Resolution Notes An implied End Raster Graphics resets the Raster Compression Method 3 seed row but does not reset the Raster Compression Method nor the left raster graphics margin If source and or transparency modes have been set frequent start end graphics commands in an image can result in a memory overflow condition Raster Y Offset Command The Raster Y Offset command moves the cursor po...

Page 324: ...ta no compression Each bit describes a single dot Bit 7 of the first byte corresponds to the first dot within the raster row bit 0 corresponds to the eighth dot and so on Note Compressed data formats allow for efficient transfer of data from the host system to the printer However compressed data formats do NOT reduce the amount of printer memory required to produce an image Run length Encoding Met...

Page 325: ...r 1 to 127 represented by the twos complement indicates a repeated byte The value of the number if positive literal identifies the number of pattern bytes which follow the control byte if negative repeated identifies the number of times to repeat the following byte A pattern byte may be repeated up to 127 times or up to 127 literal bytes may follow the control byte As mentioned for a byte to be re...

Page 326: ... the control byte plus one indicates the number of data bytes that follow For example a control byte of 0 means the following 1 byte is literal raster data A control byte of 6 indicates that the following 7 bytes are literal raster data bytes Table 15 3 Literal Pattern Values of Bytes Binary value Decimal value 1 0000 0000 1 to to to 127 0111 1111 127 Table 15 4 No Operation Value NOP value Binary...

Page 327: ...wed by literal bytes however it is more efficient to code the entire group as literal bytes Examples Run length and TIFF Compression The following examples show how a raster row can be coded using run length and TIFF compression methods Note that the compression examples use characters to represent the binary data stream Unencoded E C r1A E C b0m7WUUUUATT E C rC Run length Encoding E C r1A E C b1m...

Page 328: ...ent the delta data If a row is completely different from its preceding row then the entire row must be sent as the delta not very efficient if only one bit is different then only one byte is identified and sent To reassemble the raster data rows the printer takes the current row referred to as the seed row and makes the changes indicated by the delta data to create the new row The new row which be...

Page 329: ...e replacement bytes are to be positioned This position is identified as some number of bytes in from the first untreated byte referred to as the offset For example if there are 5 replacement bytes and the offset is 7 then the replacement bytes replace byte 7 8 9 10 and 11 the five bytes beginning at byte 7 from the seed row If there is more than one replacement in a row the second offset is counte...

Page 330: ...set value is obtained When the formatter detects an offset byte less than 255 it is assumed to be the last offset value and the offset bytes are then totaled added The following example shows an offset larger than 31 Figure 15 10 The total offset 414 which is the sum of the three offset values 31 255 128 Seed Row The seed row is basically the current raster data row the row being printed It is mai...

Page 331: ...command Sending a Raster Y Offset command with a value field of 1 sets the seed row to zero and prints the zeroed row Note that the next delta row is applied to a zeroed seed row Other cursor position moves set the seed row to zeros Remember non graphic cursor moves have the same effect as an end graphics command Note If the byte count of the Transfer Raster Data command value field is less than t...

Page 332: ...10 11110000 The first three bits of the command byte indicate that one byte will be replaced and the next five bits indicate a relative offset of 2 so the replacement will occur 2 bytes from the current position The replacement byte follows and contains 11110000 Row 3 E C b5W 00000000 00001111 00100010 10101010 10101010 As in the other rows the first three bits of the command byte are zero indicat...

Page 333: ...number of bytes for that row only The size of a block is limited to 32 767 bytes 32 767 bytes is the number of compressed bytes and not the size of the uncompressed data To transfer greater than 32 767 bytes send multiple blocks Adaptive compression uses three control bytes at the beginning of each row within the block The first of these bytes the command byte identifies the type of compression fo...

Page 334: ...dated and the seed row is cleared Compression methods 0 3 are the compression methods used by the Set Compression Method command Value fields 4 and 5 are features for the adaptive compression method and are explained below Empty Row A command byte of 4 empty row causes a row of zero s to be printed The number of rows printed depends on the value contained in the two of bytes rows bytes following t...

Page 335: ...e for a raster row is encountered the remaining bytes for the block are skipped the seed row is cleared and the cursor is not incremented z For method 1 run length encoded if the row length is odd the cursor is incremented and the row data is skipped thrown away and the seed row is left unchanged z For method 1 a row length value of zero increments the cursor and zero fills the seed row z For meth...

Page 336: ... r A The seed row is also initialized upon receipt and completion of each raster block z For method 3 If the row length terminates the data before the control byte value is satisfied literal byte count greater than row length the data following the control byte if any is printed as text The cursor is incremented z For method 3 if the row length is equal to one the current row is duplicated and the...

Page 337: ...s printed Each dot of the raster data is expanded according to the specified raster resolution Raster graphics is independent of the text area and perforation skip mode these boundaries are ignored Raster graphic images raster height and raster width are limited to the printable area images that extend beyond the printable area are clipped Note The byte count of the value field in the Transfer Ras...

Page 338: ...ately following the end of the raster area if a source raster height was specified z Allows raster commands which were previously locked out to be processed z Sets compression mode to 0 no compression z Defaults the left graphics margin to X position 0 Notes This command is a modified version of the E C rB End Raster Graphics command This new version E C rC performs two additional operations 1 it ...

Page 339: ...graphics margin E C r1A This sets the left graphics margin to the current X position 300 5 Transfer the raster data to the printer Divide the image into dot rows and transfer each dot row to the printer as a string of bytes as illustrated on the following page 6 Signify the end of the raster graphic image transfer E C rC This example prints the arrow as shown in Figure 15 11 Table 15 11 Example of...

Page 340: ...111 11111111 11111111 11111111 E C b4W 255 255 255 255 18 11111111 11111111 11111111 11111110 E C b4W 255 255 255 254 19 11111111 11111111 11111111 11111100 E C b4W 255 255 255 252 20 11111111 11111111 11111111 11111000 E C b4W 255 255 255 248 21 11111111 11111111 11111111 11110000 E C b4W 255 255 255 240 22 11111111 11111111 11111111 11100000 E C b4W 255 255 255 224 23 11111111 11111111 11111111 ...

Page 341: ...EN Raster Graphics Example 15 33 Figure 15 11Example of Raster Graphic Image Data ...

Page 342: ...15 34 Raster Graphics EN ...

Page 343: ...on from the printer such as available printer user memory current available fonts and symbol sets and the ID numbers of downloaded macros and user defined patterns to verify their presence The contents of this chapter are listed below z Introduction Memory Status Request Entity Status Request z Status Response Syntax z Set Status Readback Location Type Command z Set Status Readback Location Unit C...

Page 344: ...llel serial I O communication data for not only sending to the printer but also receiving data status back from the printer FTo obtain status information you must initiate a request by sending either a request for memory status or a request for an entity status as described on the following pages Memory Status Request It is possible to identify the amount of available user memory using the memory ...

Page 345: ...ive such as the font or user defined pattern last selected Currently selected does not apply to macros or symbol sets Location unit refers to a specific location or device within the location type For example location unit 1 for location type cartridge identifies the left cartridge on a printer with two cartridges or unit 1 for location type downloaded identifies the temporary fonts as opposed to ...

Page 346: ... the Inquire Status Readback Entity command later in this chapter Table 16 2 Entity Status Request Example Operation Example PCL Command Comments Set location type E C s4T This Set Location Type command sets the location type to downloaded Set location unit E C s2U This Set Location Unit command sets the location unit to permanent Identify entity which initiates status readback Inquire Entity E C ...

Page 347: ...ng on internal printer operations When requesting status especially in the case where multiple applications or users are sharing one printer HP recommends that you request one item and then read its response prior to making another request Note Since the printer may contain a status response requested by a previous application s operation it is important to use the Echo command described later in ...

Page 348: ...DATAn CR LF M FF TITLE KEYWORDn and DATAn are strings that vary depending on the particular status readback command being executed Each status readback response has one or more keyword lines associated with it A slight variation of this is the Echo command response This response is shown below PCL CR LF ECHO ValueField CR LF FF ValueField is the decimal number taken from the Echo command value fie...

Page 349: ...e Esc following the SELECT keyword is a five character representation the printable characters E s c and and does not identify an escape control code decimal 27 The examples in the remainder of this chapter do not show the status response line termination CR LF control codes or the termination FF control code Example responses in this chapter for SYMBOLSETS do not list the complete list of interna...

Page 350: ...y 5 Cartridge 7 User installable ROM device SIMMs Default 0 Range 0 5 7 If a value outside the range is received the location type is set to 0 When the location type is 0 and an Inquire Entity command is received an error response is generated refer to the Status Response Error Codes section later in this section for additional information A printer reset returns the location type setting to 0 The...

Page 351: ...ending on the location type specified E C s U Default 0 Range 0 through n where n is printer dependent Refer to the PCL 5 Comparison Guide For location type values 0 1 and 2 the unit value is ignored it may be any value Table 16 4 Set Status Readback Location Unit Command Location Type Location Unit 0 Invalid location 1 Currently selected 2 All Locations 3 0 All internal 4 0 All downloaded 1 Tempo...

Page 352: ...value so that an appropriate error response is sent when the Inquire Entity command is received Inquire Status Readback Entity Command The Inquire Entity command identifies the entity type and causes the printer to create a status response for the entity specified in the status readback location type and unit E C s I 0 Font 1 Macro 2 User defined pattern 3 Symbol Set for unbound scalable fonts 4 F...

Page 353: ...MBOLSETS LOCTYPE LOCUNIT An example of an inquire entity font entity type 0 status response is shown below Notice the variation in the keyword lines for the three fonts listed in order below Internal bitmap Line Printer Internal unbound scalable CG Times italic Downloaded bound scalable CG Palacio Font status PCL INFO FONTS SELECT Esc 8U Esc s0p16 67h8 5v0s0b0T SELECT Esc s1p__v1s0b4101T SYMBOLSET...

Page 354: ...keyword Bitmap Fonts For bitmap fonts the SELECT line is returned which identifies the font selection characteristics as described above For example the printer s internal bitmap Roman 8 Line Printer font would be returned as shown below PCL INFO FONTS SELECT Esc 8U Esc s0p16 67h8 5v0s0b0T Also see soft font description below Scalable Fonts For bound scalable fonts two underscores s 1 p __ v 0 s i...

Page 355: ...nd a font downloaded with an ID of 27 would be presented as Esc 27X For example a downloaded bitmap Courier with a font ID of 39 and a downloaded unbound scalable Dom Casual typeface with a font ID of 78 would be returned as shown below PCL INFO FONTS SELECT Esc 8U Esc s0p10 00h12 0v0s0b3T Esc 39X SELECT Esc s1p__v1s0b4148T Esc 78X SYMBOLSETS 0D 0I 0N 0S 0U 1E 1F 1G Location Type 1 Currently Selec...

Page 356: ... selected font is a bold 14 point Presentation bitmap font selected from a cartridge and a font entity request with the location type set to 1 is made the response would be returned as shown below PCL INFO FONTS SELECT Esc 1U Esc s0p10 00h14 0v0s3b11T LOCTYPE 5 LOCUNIT 1 For example assume the printer s currently selected font is unbound scalable Dom Casual font with the following characteristics ...

Page 357: ...cal Reference Manual for information on PJL font selection The DEFID number consists of two parts a location and an ID number such as I 21 where I is the location and 21 is the font s internal ID number The possible locations are listed below Note The cartridge Cn and SIMMs Mn location identifiers are printer specific Refer to Chapter 1 of the PCL 5 Comparison Guide for printer specific values for...

Page 358: ...sc s1p__v1s3b4111T Esc 7X SYMBOLSETS 0D 0I 0N 0S 0U 1E 1F 1G DEFID NONE NAME CG Palacio BdIt SELECT M Or for example a font extended response with the location type set to 1 currently selected where the currently selected font is the internal CG Times 18 point specified for printing bold the response would be returned as shown below PCL INFO FONTS EXTENDED SELECT Esc 8U Esc s0p18 00h0s3b4101T DEFI...

Page 359: ...rently selected then LOCTYPE and LOCUNIT lines are added LOCTYPE is returned for a status location type 1 request only It identifies the location type of the currently selected pattern LOCUNIT is returned for a status location type 1 request only It identifies the location unit of the currently selected pattern A user defined pattern response for the currently selected pattern might appear as show...

Page 360: ...own below PCL INFO SYMBOLSETS IDLIST 0U 2K 8M 8U 11U Notes Status location type 1 currently selected is an invalid location for unbound font symbol sets and returns an error ERROR NONE Example responses in this chapter for SYMBOLSETS do not list the complete list of internal available symbol sets only a partial list 0D 0I 0N 0S 0U 1E 1F 1G The internal symbol sets are printer dependent and may var...

Page 361: ...n invalid entity error is returned For example if the Inquire Entity command contained an out of range value of 8 E C s8I the following error response would be generated PCL INFO ENTITY ERROR INVALID ENTITY ERROR INVALID LOCATION If the entity type is valid but the location either the type the unit or the combination is invalid or if the specified device is not installed an invalid location error ...

Page 362: ...ollowing error response would be generated PCL INFO SYMBOLSETS ERROR NONE ERROR INTERNAL ERROR The status response for some requests can be fairly large such as for fonts In processing status responses if the printer runs out of memory an internal error is returned as shown below PCL INFO SYMBOLSETS ERROR INTERNAL ERROR Note The error conditions described above are the only conditions for which an...

Page 363: ...ons can cause the available memory to change or appear different Some of these conditions are listed below The actual printer memory required to store an item varies slightly based on printer memory fragmentation and other internal printer conditions Different printer models use different methods to store data Thus the amount of memory required to store the same amount of data may be slightly diff...

Page 364: ... character by character basis as they are needed for printing and are stored in memory As more pages are printed using more fonts the bitmaps consume more memory The bitmap characters used on the first page of a job can remain in memory until the end of a job These stored bitmap characters are referred to as the font cache Note When an HP LaserJet 4 printer or later reaches a memory low condition ...

Page 365: ...ndicates that the printer has 100 000 bytes of available memory and the largest continuous block is 25 000 bytes Memory Error Response If the Free Memory command value field is out of range not 1 then the memory status response returns an invalid unit error For example if the Free Space command with a value of 2 E C s2M were sent the following error would be returned PCL INFO MEMORY ERROR INVALID ...

Page 366: ... flush all pages value field 1 it processes and ejects pages A B and C The printer resumes receiving processing data when the last page is processed and ejected from the paper path Notes Using the Flush All Pages command significantly reduces printing performance If possible applications should use the Free Space command to check for available memory without using the Flush All Pages command If th...

Page 367: ...s are processed in the order they are received Status readback responses are returned to the printer port from which they were received When selecting an echo value it is important to select a number which is not likely to be used by another user such as a random number This example illustrates why using the Echo command with a random number is important Assume an application uses a fixed number e...

Page 368: ...sume that the response received is the response to its last request If the application uses random numbers in the Echo command this type of mix up will not occur Echo Response The Echo command returns the following response PCL ECHO ValueField where ValueField is the Echo command value field value that was selected within the range 32767 to 32767 For example if the Echo command E C s 999X was sent...

Page 369: ...questing a PCL status it is possible that PJL could return an unsolicited status response if PJL is enabled All PCL status responses begin with the PCL header and end with the FF control code When reading PCL status responses your application should be able to read all the data between the PCL header and the FF control code It should ignore any other status response syntax Lines within the PCL sta...

Page 370: ...16 28 Status Readback EN ...

Reviews: