Enhancing Your PrintingSelecting typestyles with Master Select

Your printer has a special ESCape code called Master Select that allows you to choose many possible combinations of nine different modes: 10 cpi, 12 cpi, proportional, condensed, emphasized, double-strike, double-width, italics, and underline. For more information on sending ESCape codes to your printer, refer to Chapter 9.

The format of the Master Select code is shown below:

ASCII code:

ESC

!

n

Decimal:

27

33

n

Hexadecimal:

1B

21

n

The variable n is a number that identifies the mode or combination of modes. To find the value of n, use the table below to add up either the decimal or hexadecimal numbers for the features you want.

 

Feature

Dec.

Hex.

 

 

 

 

 

 

 

 

 

 

 

 

10 cpi

0

00

 

 

 

 

 

 

 

 

 

 

 

 

12 cpi

1

01

 

 

 

 

 

 

 

 

 

 

 

 

proportional

2

02

 

 

 

 

 

 

 

 

 

 

 

 

condensed

4

04

 

 

 

 

 

 

 

 

 

 

 

emphasized

8

08

 

 

 

 

 

 

 

 

 

 

 

double-strike

16

10

 

 

 

 

 

 

 

 

 

double-width

32

20

 

 

 

 

 

 

 

 

italics

64

40

 

 

 

 

 

 

 

 

 

 

 

 

underline

128

80

 

 

 

 

 

 

 

 

 

 

 

Software and Graphics 4-7