ESC/ P Command Reference

Table Of Contents
ESC/P Command Reference
- 40 -
5. Control Command Details
ESC X Specify character size
ASCII: ESC X m nL nH
Hexadecimal: 1B 58 m nL nH
Parameters
Character width:
The value of m is irrelevant.
Character size:
<Bitmap fonts>
Valid only with:
nL=16, 24, 32, 48 dots
nH=0
<Outline fonts>
The maximum is:
nL=144
nH=1
Description
This command is used only to change the size.
Outline must not be specified.
The character width cannot be specified.
The character size is specified as n=nL+nH*256 dots.
With bitmap font Gothic, only n=16, 24 and 32 are valid.
With bitmap font Letter Gothic Bold and Helsinki, only n=16, 24, 32 and 48 are valid.
With bitmap font Brussels, San Diego and Brougham, only n=24, 32 and 48 are valid.
With outline fonts, n=400 is the maximum.
The commands for specifying stretched characters, compressed characters and the character spacing
(SO, ESC W, SI, ESC !, ESC SP) remain available.
Please refer to Appendix B: Specifications.
Example
For ABCat a 24-dot size and DEFat a 48-dot size:
Code: ESC k 01h
ESC X 00h 18h 00h ABC
ESC k 09h
ESC X 00h 30h 00h DEF FF
Print result: ABCDEF