Guardian Programmer's Guide

Table Of Contents
Communicating With Printers
Guardian Programmer’s Guide 421922-014
11 - 26
Printing Text
Printing Text
PCL supports several operations that affect the appearance of printed characters on
Tandem matrix line printers. Your program can specify the following:
Font characteristics, including:
A symbol set; for example, to correspond to a national standard
The pitch (number of characters per horizontal inch)
The style (upright or italic)
The density or boldness (number of dots per character)
Text underlining
Text overstriking
The following paragraphs describe how to use these features in an application
program.
Selecting Font Characteristics
You specify the font characteristics by writing escape sequences with the following
formats to the printer:
Refer to the appropriate printer reference manual for a complete list of possible values
for each of these escape sequences. The following example describes a font for the
Japanese ASCII symbol set, a pitch of 12 characters per inch, italic, with standard
density:
SBUFFER ':=' [%33,"(0K",%33,"(s12H",%33,"(s1S",
%33,"(s0Q"] -> @S^PTR;
CALL WRITEX(PRINTER^NUM,
SBUFFER,
Escape sequence for specifying the symbol set for the primary font:
esc(id
Escape sequence for specifying the pitch for the primary font:
esc(spitch-valueH
Escape sequence for selecting the printing style for the primary font:
esc(sstyle-valueS
Escape sequence for selecting the print density for the primary font:
esc(sdensity-valueQ