
This little program will allow you to PRINT in four fonts. With just a few GOSUBS you can switch to BOLD, MODERN, ITALICS, and back to NORMAL on the same line.
20 PRINT "This little program will allow you to PRINT in four ";
25 GO SUB 9991
30 PRINT "fonts. Withjust a few GOSUBS ";
35 GO SUB 9992
40 PRINT "you can switchto ";: GO SUB 9991: PRINT "BOLD, ";: GO SUB 9992: PRINT "MODERN, ";: GO SUB 9993: PRINT "ITALICS,";
45 GO SUB 9990
50 PRINT " and back to NORMAL on the same line.."
9989 STOP
9990 POKE 23607,60: RETURN
9991 LET typ=2: POKE 23618,9: POKE 23619,39: POKE 23620,2
9992 LET typ=1: POKE 23618,9: POKE 23619,39: POKE 23620,2
9993 LET typ=0: RANDOMIZE USR (torg*256+2-typ): POKE 23607,torg-4: RETURN
9994 LET TYPE=9994: LET torg=255: CLEAR (256*torg-769): LET torg=255: LET reg=9990: LET REG=9990: LET bld=9991: LET BLD=9991: LET mod=9992: LET MOD=9992: LET ITAL=9993: LET ital=9993
9995 FOR i=0 TO 79: READ k: POKE (i+256*torg),k: NEXT i: INPUT "ENTER TYPE OF PRINTING REG / MOD / BLD / ITAL :";Z: GO SUB Z: GO TO 10
9996 DATA 0,0,121,203,39,203,39,50,21,255,33,0,61,17,0,torg-3
9997 DATA 1,0,3,126,24,48,203,63,24,44,230,112,24,37,121,230,7,203,39,50,40,255,126,24,30,24,28,24,16,24,14,24,14,24,20,24,18,24,2,200,63,203,63,24,10,203,39,203,39,24,4,183,203,39,182,18,35,19,11,120,177,32,196,201
9998 SAVE "PRINTING" LINE 9994: PRINT #1;" REWIND THE TAPE *** AND PLAY ** ": VERIFY ""
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.