BASIC Example:
100
REM
-Proportional
vs
Fixed Spacing------
110
REM
- proportional spacing
120
LPRINT
CHR$(27);"(slP";"PROPORTIONAL spacing"
130
LPRINT
"1234567890abcdefghijklmnopqrstuvwxyzABCD"
140
REM
--
fixed spacing
150
LPRINT
CHR$(27);"(s0P";"FIXED spacing"
160
LPRINT
"1234567890abcdefghijklmnopqrstuvwxyzABCD"
170
LPRINT
CHR$(l2);
:REM
-Form
Feed--
FONT
PITCH
SELECTION
Font
pitch
can
be specified
for
both the primary
and
secondary
character fonts by using
the
following escape sequences:
Font
pitch, primary
font
Ec(s#H
Font
pitch, secondary
font
Ec)s#H
# = Print pitch
The value field (#) in this escape sequence specifies the pitch size
in characters per inch and
is
valid
to
two
decimal places. The
label
on
each
font
cartridge lists the
font
pitch.
For
example,
if
you load a
font
cartridge containing a
10
character-per-inch font,
you would send
the
Ec(s10H sequence
to
select the pitch
(10
cpi)
of
the primary font. NOTE: In order
to
print in the specified
pitch, a font cartridge must
be
loaded which contains a font with
the specified print pitch.
The
font
pitch
is
ignored by
the
printer
if
proportional spacing
is
activated
and
available in the requested symbol set.
If
a print
pitch
is
specified
that
does not exist, the next greater pitch will be
designated.
If
no
greater value exists,
the
printer will use the next
lesser value. NOTE:
16.66
pitch is greater
than
12 pitch and less
than
18 pitch.
The
pitch
of
the
resident
default
font
is
10
characters per inch.
2-28