Guardian Programmer's Guide

Table Of Contents
Communicating With Printers
Guardian Programmer’s Guide 421922-014
11 - 16
Printing Text
Setting the Horizontal and Vertical Motion Indexes
The horizontal motion index designates the distance between columns in 1/120-inch
increments. Similarly, the vertical motion index designates the distance between rows
in 1/48-inch increments. You set the horizontal and vertical motion indexes using the
following escape sequences:
Setting the line spacing has the same effect as setting the vertical motion index, but
you specify the number of lines per inch instead of the distance between adjacent
rows.
The following example sets the horizontal motion index to 14/120-inch and the vertical
motion index to 5 lines per inch:
SBUFFER ':=' [%33,"&k14H", %33, "&l5D"] -> @S^PTR;
CALL WRITEX(PRINTER^NUM,
SBUFFER,
@S^PTR '-' @SBUFFER);
IF <> THEN ...
Printing Text
PCL supports several operations that affect the appearance of printed characters.
Your program can do the following:
Select a font and alter its characteristics
Underline text
The following paragraphs describe how to use these features in an application
program.
Selecting Font Characteristics
Several fonts are supplied with the printer; these fonts are referred to as internal fonts.
You can add fonts to your printer by inserting font cartridges or downloading soft fonts.
Escape sequence to set the horizontal motion index:
esc&kcolumn-separationH
Escape sequence to set the vertical motion index:
esc&lrow-separationC
Escape sequence to set the line spacing:
esc&lline-spacingD