Lexmark 258x Printer User Manual


 
Style Commands
2-22
Draft document
Select Global Font
This command allows the user to vary the font, pitch and code page.
USAGE NOTES
Count the number of parameter bytes contained in this escape sequence as
value (A).
When a value is represented by two parameter bytes, value (A) = Ln + Hn
X 256. Calculate values of A less than 256.
Hn is 0.
Ln is the value.
To calculate values of A equal to or greater than 255.
Divide the value A by 256.
The result is Hn.
The remainder is Ln.
If Font Lock and Pitch Lock are active, this command is ignored.
The font global ID (Hf = high byte and Lf = low byte) specify the pitch and font
typestyle you want to print. The Global Font Id Tables below describe the Hf
and Lf variables. When the font global ID is valid data, size parameters (Hs,
LS, Sm) are ignored.
The size parameters (Hs, Ls and Sm) specify the pitch. They are valid when
font ID (Hf and Lf) is not valid. Nul data is ignored. See Table 2-12: “Global
Font Size Parameters” on page 2-26 for the valid size parameters.
Sm specifies the size modifier. Values of Sm are:
00 - No change
01 - Width is measured in increments of 0.018 mm (1/1440 in.)
02, 03 - Font is proportional
All other values are regarded as 0.
The code page ID (Hc and Lc) specify the Code Page. See“Code Page
Table” on page A-1 for decimal and hexadecimal values.
This command uses the following best-fit algorithm in the following order:
Requested font, pitch and code page
Requested pitch and code page, first font found
Requested code page, first font and pitch found
No change
Format ESC [ I Ln Hn Hf Lf Hs Ls Sm Nul Hc Lc
Decimal 279173Ln Hn Hf Lf Hs Ls Sm Nul Hc Lc
Hexadecimal 1B 5B 49 Ln Hn Hf Lf Hs Ls Sm Nul Hc Lc