Expanded Mode
33
Expanded Mode
ASCII Code ESC [p1;p2 SP B
Hex Code 1B 5B p1 3B p2 20 42
Dec Code 27 91 p1 59 p2 32 66
Expression CHR$(27);[p1;p2 B;
Purpose Modifies the vertical (p1) and horizontal (p2) character size o f all
characters following the sequence and stays in effect until
changed or canceled. Expansions of X3, X5, X6, and X7 are
invalid for p2.
Discussion An invalid or zero parameter selects the normal (X1) expansion.
If a parameter is missing, the former value is used. Valid p1 and
p2 values are the following:
X1 0-199 (default) X5 500-599*
X2 200-299 X6 600-699*
X3 300-399* X7 700-799*
X4 400-499 X8 800-up
* Not valid for horizontal expansion
Horizontal and vertical expansion are independent, and different
values can be mixed in a line. Mixed sizes within a line are top-
justified. Since the line feed is based on the size of the
characters in the final pass, the largest sized characters on a l ine
should be printed last to avoid printing over other characters.
Examples:
ESC [;200 B X1 Vert. expansion, X2 Horiz. expansion
ESC [200;200 B X2 Vert. expansion, X2 Horiz. expansion
ESC [800;400 B X8 Vert. expansion, X4 Horiz. expansion
When the printer is printing vertically expanded characters, blank
lines (lines with non printed characters) are not expanded from
the current LPI setting.