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

EN FN, Select Secondary Font 23-57
When the printer receives this command and the requested font is
present, the secondary font characteristics are set to those of the
requested font. If the selected font is proportionally spaced, the pitch
characteristic is not changed.
Notes This command does not select the font for label printing if you are
currently using the standard font.
The FI and FN commands implicitly change the value of SB. For
example, if SB = 0 and FI selects a bitmap font, SB is set to 1. This
affects the performance of certain HP-GL/2 commands. Refer to
SB command later in this chapter.
Example:Using the FN Command
The following example demonstrates assigning a font ID number from
within PCL mode, entering HP-GL/2 mode, using the FN command to
select that font, and printing a short line of text.
Table 23-30 Example: Using the FN Command
E
C
E Reset the printer.
E
C
*c28D Specify a font ID number of 28.
E
C
(s1p18v0s3b4148T Select an 18-point Univers Bold font as the
primary font.
E
C
*c6F Assign the currently selected font as a
temporary font with the current ID number
(28).
E
C
%0B Enter HP-GL/2 mode.
IN; Initialize HP-GL/2 mode.
SP1; Select pen number 1. Even though there is
no physical pen, the SP command must
be used to enable printing.
PA1500,1500; Move to location (1500,1500).
DT#; Define “#” as a label terminator
(non-printing).