Table 3-2

 

Italic

commands

 

Function

Control code

Italic ON

(ESC)

“4”

Italic OFF

(ESC)

“5”

Use this program to see italic characters:

10 ’ Demo of italic and roman

20 LPRINT CHR$(27);"4";

30 LPRINT “This line is in ITALIC characters.”

43 LPRINT CHR$(27);"5";

50 LPRINT "This line is in ROMAN characters."

In this program, line 20 turns italic on with (ESC) “4”, and line 40 turns italic off with (ESC) “5”.

nUnderlining

Not only can your printer print all styles of printing in both roman and italic, but it can underline them too. The control codes are shown in Table 3-3.

 

Table

3-3

 

 

 

Underline

commands

 

Function

 

Control code

Underline

ON

(ESC)

“-”

1

Underline

OFF

(ESC)

“-”

0

It’s that simple. Let’s try it with this program:

10' Demo of underlining

20LPRINT CHR$(~~) ;"-1";

30 LPRINT "This phrase is UNDERLINED;" ;

40LPRINT CHR$(27);"-0";

50LPRINT " this is not."

Page 32
Image 32
Star Micronics NP-IO manual Italic on