10/10/03

Select a character from the All Character Code table

Esc^<char-code> (27)(94)<Char-code> <1Bh><5Eh><Char-code>

This command enables you to print a single character from the All Character Code table.

A control code is not executed if the code is sent immediately following this instruction.

LPRINT CHR$(27); CHR$(94); CHR$(36); 'Printed a dollar sign

Select character font

EscIn

(27)(73)n

<1Bh><49h>n

This command enables you to select a font and choose the print quality.

If n is set to 0 the printer's standard font and draft quality are selected.

If n is set to 2 the printer's standard font and letter quality are selected.

If n is set to 4 the download font (the characters you sent to the printer using the Esc = command) and draft quality are selected.

If n is set to 6 the download font ( the characters you sent to the printer using the Esc = command) and letter quality are selected.

LPRINT CHR$(27); CHR$(73); CHR$(2); 'Selected letter quality printer font

Define characters

Esc=n1n220n3(n4n5<character definition data>...)

(27)(61)n1n220n3(... <1Bh><3Dh>n1n220n3(...

This command enables you to define and download characters for printing.

Monospaced characters are designed on a grid eleven dots wide by twelve dots high. The width of proportionally spaced characters is specified in n5.

Blank columnsCharacter width

1

2

3 Rows 1 - 48

5

6

7

8

9

10

Replication area

11

12

Rows 2 - 9

n1 and n2 define the number of characters to be defined as follows: number of characters = ((n1+(n2*256)-2)/13.

n3 is the character code of the first character in the sequence to be defined. It is assumed that you are defining a sequence of characters whose code numbers increment by one for each character to be defined.

If bits 1 and 2 of n4 are 0 and bit 8 is set to 1, the bytes that make up the character definition define the top eight rows of the grid, the most significant bit representing the top dot, and the least significant bit representing the eighth dot down. Simply set a bit to 1 to print a dot in that position on the grid, or to 0 to print white space.

If bits 1 and 2 of n4 are 00 and bit 8 is set to 0 the bytes that make up the character definition define rows 2 to 9 of the grid, the most significant bit representing the second dot, and the least significant bit representing the ninth dot down. Simply set a bit to 1 to print a dot in that position on the grid, or to 0 to print white space.

CHAPTER 7 IBM PROPRINTER - 17

Page 297
Image 297
Homelite HL-P2500, 2400C Select a character from the All Character Code table, Escchar-code 2794Char-code 1Bh5EhChar-code