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

 

 

 

 

 

 

 

 

ECE

Reset the printer.

 

 

EC%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,

Designate the 25-point CG Times font as

 

 

5,0,6,0,7,4101;

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.”

 

 

 

 

EN

SL, Character Slant 23-79

Page 691
Image 691
HP 5961-0509 manual ExampleUsing the SL Command, Example Using the SL Command