User-Defined Characters

An example character definition program should make this clear:

10

20

30

40

50

60

70

80

90

--,c-\jr “r,&&;”

100 I..-- A “----

L-;l’“,\ w’--(g) ;

1x3 l=F.I!Ji CL.,\r, , 10 ur-2..3

‘-3SpJT “40660~’

120irrrr

130 2x2

140 3A"A +,0,0,2,0,0,4,0,0

1551 3~21 8,0,0,23,255,2:0,8,0,0

160 DATA ~,0,0,2,0,0,1,0,0

In line 10, the ESC x command selects draft style printing.

The actual character definition starts in line 20. The two at signs

(@)in line 30 represent nl and n2, the range of characters being defined (in this case, a range of one). Line 40 contains do, dl, and d2.

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 lines 50 and 70.

When defining Letter Quality or proportional characters in BASIC, put a WIDTH statement in your program to prevent carriage return and line feed codes from interfering with your definitions.

4-26