10 ’ Demo of boldface and emphasized

20 LPRINT CHR$(27) ;“G”;

30 LPRINT “This line is BOLDFACEprinting.” 40 LPRINT CHR$( 27 1 ; “E” ;

50 LPRINT “This line is BOLDFACEand EMPHASIZED.”

60 LPRINT CHR5(27) ; “H” ;

70 LPRINT “This line is EMPHASIZEDprinting.”

80 LPRINT CHR5(27) ;“F”;

90 LPRINT “This line is normal printing. ”

100 END

Run this program. The results will look like this:

This line is FOLDFACE printing.

This line is BOLDFACE and EMPHASIZED.

This line is EMPHASIZED printing. 7-hi.'5 I.:Ir-Ei i .:j ri D f ifi3 I pt-i.ntir-g1y

Line 20 turns on boldface with < ESC > “G” and line 30 prints a line of text. In line 40 emphasized is turned on with -=cESC > “E”. Line 50 prints a line of text in boldface and emphasized. Line 60 then turns boldface off with < ESC > “H” so that line 70 can print in emphasized only. Finally, line 80 turns emphasized off, so your printer is set for normal printing.

Look closely at the different lines of printing. In the line of boldface printing each character has been printed twice, ‘and the paper was moved up slightly the second time they were printed. In emphasized printing, the characters are moved slightly to the right the second time the printer prints. The

second line combined both of these so that each character was printed 4 times.

MIXING PRINT MODES

We have learned how to use the various print modes indi- vidually and together. Now we’ll see how to combine them more efficiently.

Page 61
Image 61
Star Micronics ND-10/15 user manual This line is Foldface printing, Mixing Print Modes