10/10/03

60 REM --- PRINT CHARACTERS ----

70 FOR I=33 TO 127

80 LPRINT CHR$(I);

90NEXT

100LPRINT

110REM --- FRENCH CHARACTER SET SELECTION ------

120LPRINT ESC$+"(s5C";

130REM --- PRINT CHARACTERS ----

140FOR I=33 TO 127

150LPRINT CHR$(I);

160NEXT

170LPRINT

180REM --- PAPER EJECT ---

190LPRINT CHR$(12);

200END

5.2.6.Selecting the type of character spacing

Esc(s#P (27)(40)(115)#(80) <1Bh><28h><73h>#<50h>

This command selects the spacing type for the primary font.

Esc)s#P (27)(41)(115)#(80) <1Bh><29h><73h>#<50h>

This command selects the spacing type for the secondary font.

# = 0 selects fixed spacing and # = 1 selects proportional spacing.

10 REM ****** SELECTING A PROPORTIONAL OR FIXED SPACE FONT ******

20 ESC$=CHR$(27)

30 WIDTH "LPT1:",255

40 REM --- SELECT A PROPORTIONALLY SPACED FONT ----

50 LPRINT ESC$+"(s1P";

60 FOR I=33 TO 127

70 LPRINT CHR$(I);

80NEXT

90LPRINT

100REM --- SELECT A FIXED SPACE FONT ---

110LPRINT ESC$+"(s0P";

120FOR I=33 TO 127

130LPRINT CHR$(I);

140NEXT

150LPRINT

160REM --- PAPER EJECT ---

170LPRINT CHR$(12);

180END

5.2.7.Selecting the pitch

Esc(s#H (27)(40)(115)#(72) <1Bh><28h><73h>#<48h>

This command designates the pitch for the primary font.

Esc)s#H (27)(41)(115)#(72) <1Bh><29h><73h>#<48h>

This command designates the pitch for the secondary font.

# = the number of characters to be printed per inch. However, the actual size range is defined in combination with the character height.

The printer’s in-built bitmap fonts all have a pitch of either 10, 12 or 16.66 characters per inch, and you can specify any of these as follows:

Esc&k0S

( 10

cpi )

Esc&k2S

( 16.66 cpi )

Esc&k4S

( 12

cpi )

CHAPTER 2 "PCL" - 44

Page 62
Image 62
Homelite HL-1470N, 2400C Escs#P 2740115#80 1Bh28h73h#50h, Escs#P 2741115#80 1Bh29h73h#50h, Escs#H 2740115#72 1Bh28h73h#48h