This command (ESC K n CR) must be sent prior to any printable characters on the line in order to take effect. Example 1: The following escape sequence set the pitch to 12 CPI (Courier Font):
Escape Sequence: | ESC | K | 1 | CR |
|
Hexadecimal: | 1B | 4B | 31 | 0D |
|
Decimal: | 27 | 75 | 49 | 13 |
|
Example 2: The following escape sequence set the pitch to 25 CPI Verin Font: | |||||
Escape Sequence: | ESC | K | 1 | 1 | CR |
Hexadecimal: | 1B | 4B | 31 | 31 | 0D |
Decimal: | 27 | 75 | 49 | 49 | 13 |
Select Character Pitch: Mode 2 | ESC k n |
This command is used for backward compatibility when Legacy or Factory fonts are selected. The command sets the font size based on the number of character per inch. The parameter n can have the following values:
n | Character Pitch/Font | Character size |
| Columns Per Line |
|
|
|
|
|
| |
|
|
| APEX 2 | APEX 3 | APEX4 |
|
|
| Andes3 | ||
|
|
|
|
| |
0 | ~13 cpi Rotated / Courier mode 0 | 16 x 14 | 24 (rows/line) | 36 (rows/line) | 52 (rows/line) |
|
|
|
|
|
|
1 | ~12 cpi Normal / Courier mode 1 | 16 x 23 | 24 | 36 | 52 |
|
|
|
|
|
|
2 | ~16 cpi Normal / Courier mode 2 | 12 x 23 | 32 | 48 | 69 |
|
|
|
|
|
|
3 | ~19 cpi Normal / Courier mode 3 | 10 x 23 | 38 | 57 | 83 |
|
|
|
|
|
|
4 | ~21 cpi Normal / Courier mode 4 | 09 x 23 | 42 | 64 | 92 |
|
|
|
|
|
|
5 | ~24 cpi Normal / Courier mode 5 | 08 x 23 | 48 | 72 | 104 |
|
|
|
|
|
|
6 | ~10 cpi Normal / Monospace 821BT | 20 x 23 | 19 | 28 | 40 |
|
|
|
|
|
|
7 | ~20 cpi Normal / Monospace 821BT | 10 x 23 | 38 | 57 | 80 |
|
|
|
|
|
|
8 | ~20 cpi Bold / Monospace 821BT | 10 x 23 | 38 | 57 | 80 |
|
|
|
|
|
|
9 | ~20 cpi Short / Monospace 821BT | 10 x 18 | 38 | 57 | 80 |
|
|
|
|
|
|
This command (ESC k n) must be sent prior to any printable characters on the line in order to take effect. Example: The following escape sequence set the pitch to 12 CPI (Courier font):
Escape Sequence: | ESC | k | 1 |
Hexadecimal: | 1B | 6B | 31 |
Decimal: | 27 | 107 | 49 |
4