User-defined Characters

The following character definition program should help make this clear:

100 LPRINT CHR$f27) :“x”:CHR$(O) :

110 LPRINT CHR$(27) ;"&";CHR$(O);

120 LPR1NlY.V:

130LPRINT 'X$2$(136 1;

140FOR I=1 TO 11

150READ A: LPRINT CHRS (A) :

160NEXT I

170LPRINT "@W@@"

180LPRINT CHR$(27,:"X";CHR$(l):

190LPRINT V0.W'

200LPRINT CHR$(27);"X":CHR$(O):

210LPRINT "eieo@"

220END

230DATA 32.80.168.84,42.84.168.80,32.0.0

The two at signs (Q) in line 120 (no and ti) represent the range of characters being defined (in this case, a range of one). Line 130 contains al.

The information about the actual character design (which is contained in the data statements at the end of the program) is sent to the printer in the loop between hnes 140 and 160.

Sped&ngthewid&andheight

The example program uses 136 for al (in line 130 of the definition program), but you can use other values. The number al specifies two things: the width of the character and its position on the grid. The width is used when the character is printed in proportional mode.

If you want to use the bottom eight pins, use the third grid in the illustration on page 4-23.

Software and Graphics 4-25