HP PCL/PJL reference (PCL 5 Printer Language) - Technical Reference Manual Part II
EN SL, Character Slant 23-79
The SL command only affects each character relative to an imaginary
line beside the label. The direction or placement of the label on the
drawing does not affect the SL command; neither do the settings of
P1 and P2. The DI and DR commands, however, do affect the slant
direction, since the base of a character always stays on the baseline
of the label.
You can specify the actual tangent value, or you can use the TAN
function available in most computer languages.
An SL command remains in effect until another SL command is
executed, or the printer is initialized or set to default conditions.
Example:Using the SL Command
The following example illustrates the Slant command using a tangent
value listed in the previous table.
Note Many languages require that tangents be calculated in radians.
Consult your programming language documentation if you are
not familiar with your language’s tangent function.
Table 23-49 Example: Using the SL Command
E
C
E Reset the printer.
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.
SD1,21,2,1,4,25,
5,0,6,0,7,4101;
Designate the 25-point CG Times font as
the standard (primary) font.
SI.7,1;PA1000,1000; Set the absolute character size to .7 cm
wide by 1 cm high; establish absolute
plotting and move to (1000,1000).
DT#,1; Specify a label terminator (#).
SL.36;LBSlant#; Set the slant angle for 20° from vertical
(forward slant), and print “Slant.”