Additional ESC/P2 commands
ESC/P2 commands extend the scope of functions of the Epson
emulation in the area of scalable fonts.
Setting step size and character spacing
Function
Set horizontal basic
step size (HMI)
With this command is defined the basic step size, i.e. the spacing
between two characters of a character set.
The parameters Lp and Hp specify the basic step size in accordance
with the following formulae:
Hp = integer (basic step size / 256)
Lp = basic step size - (Hn * 256)
HMI = (Lp + Hp * 256) / 360
If the parameters Lp and Hp = 0 are set, this command is ignored
and the previously fixed basic step size remains valid. If the basic
step size (Lp + Hp * 256) / 360 > 3 inches is set, it is fixed at 36 / 360
= 1/10 inch.
If the basic step size goes over the right margin, the printing is con-
tinued at the left margin of the next line. This command is also im-
mediately valid within a line. The character spacing last set is the
current one. The basic step size set with this command is overwrit-
ten by commands for setting character pitch and for selecting the
font by means of character pitch and point size, if these commands
are used after defining the basic step size.
The following commands use the basic step size defined with this
command:
ESC I Pn, ESC Q Pn: Set left and right margin
ESC D: Setting of horizontal tabs
BS: Backspace
Dec.
Hex.
27 99
1B 63
Lp Hp
Lp Hp
Lp = 0 to 255
Hp = 0 to 255 (MSB ignored)
Chapter 14: Epson - Standard Functions
Setting the basic
ASCII
spacing
ESC c
Lp Hp
The basic step size is not
valid for bit image graphics
and bar codes.
14-27