Downloadable and Custom Commands

Descenders

Earlier in this chapter we mentioned the descender informa- tion. When we left it as azero you probably thought this was easy. Well, it is! We only have two choices for descender data; it’s either a zero or a one. When it’s a zero, nothing happens. When it is a one, all the dots that make up our character are shifted down two rows. Why do we want to perform this magic? If you look at the lowercase g in magic, you can see that the tail of the g drops down below the bottom of other characters. This is a descender. Let’s take our copyright symbol example and define the @ symbol as we did before and make the “&”symbol our copyright symbol with a descender (shifted down two rows).

!O

REl4

brfinc the Ercaoe character

 

20

ESC$=CHRS(??!

 

 

24

REtl COW c5aractwsto RAM

 

 

i5

LPR!NT

ESCl:CHR((421ICHRI(O):

 

 

30 REtIDefinecwyrightsvmbolin place

of Q

40

LPR!NT ESC~ICHRS(~~):CHR((I):CHR$(~~):CHR~(O)~CHR$~~S)~CHR~~~~)ICHR$~?~!~

 

 

~HRi!iO~~CHR1~6S~~CHR(oleHRllbS!ICHR$~S4~~CHR~f~O~~

44 REN Deflnrcotwrightsvmbol

in olrce

of t

45

LPRINT

ESC(ICHR((~~)~CHRI(~I~~HRI(~~)~CHR~~~)~CHR~(~S~~CHR~(S~!~CHR~(~~):

 

 

CHR~!~~):CHR~(~S)ICHR~(~O)ICHR~~~~)~CHR~~~~)ICHR~~~O~~

$0 REF Select downloadrble chtrrcters

 

60

LPRINT

ESClleHRI(56)lCHRI!l)

I

 

70

REM

Printournw rvmbols

 

 

90

LPRINT

“W&@!&@tlt@tb&”

 

 

Figure

8-6. Program /is ting

to print:

y :::.?:....,;;x.‘?..q../r?:”.Q .?r^.” p -.

,,i I..,. .>n:,. s...:,:;.r.A:-..+b. ..1.-.!‘.:,.

One more instruction you’ll need before we leave downloadable characters: How to turn them off.

CHR$(27) CHR$(36) CHR$(O)

Turning downloadable characters on or off during a line will affect a// characters on that line. In other words, if you turn on downloadable characters anywhere in a line, all of the characters on that line will be treated as downloadable characters.

119

Page 125
Image 125
Gemini Industries Printer user manual Esc$=Chrs??