HP PCL/PJL reference (PCL 5 Printer Language) - Technical Reference Manual Part II

EN Printing Labels 23-3
Printing Labels
Use the Label command (LB) to create text charts or to emphasize
areas of a diagram or graph that need special attention or
explanation. You can control almost all aspects of the label’s
appearance: its position, size, slant, spacing, and direction. All
labels are drawn using the font currently designated (refer to the
SD or AD commands) and selected for use (refer to the SS or SA
commands).
If you are using a font other than the default, use SD (Standard Font
Definition) or AD (Alternate Font Definition) commands to designate a
font that can be selected. Then, use the SS (Select Standard Font) or
SA (Select Alternate Font) commands to select the designated font.
You can follow the LB (Label) command with virtually any characters,
including non-printing control codes, such as a Line Feed or Carriage
Return.
Note Symbol mode is a special case of a Label.
At the end of a label, you must use a special label terminator to
signify the end of text. The default terminator is the ASCII end-of-text
character ETX (decimal code 03), or you can define a terminator
using the DT command. Without the label terminator in place, your
printer continues to label your picture with all subsequent HP-GL/2
commands and parameters.
The following example demonstrates printing a simple label using the
SD command to designate a font, the SS command to select that font,
the DT command to define a label terminator, and the LB command to
print the label, including Carriage Returns and Line Feeds.
TD, Transparent Data Specifies whether control
characters perform their
function or are printed as
characters when printing text.
Table 23-1 The Character Group Commands (continued)