beautypg.com

Combining attributes, Igure, Haracter – Dascom T2250 User Guide IGP for Dot Matrix Printers User Manual

Page 24: Efinition and, Ormat, Odes, Igp for dot matrix printers user guide

background image

IGP for Dot Matrix Printers

User Guide

24

Parameter Code

Parameter

ASCII

HEX

Description

Attribute Selections

4 34

Underline

3 33

Italic

1 31

Boldface

60 3630

Overline

61 3631

Strikethrough

0 30

End

Attribute

Print Position

62 3632 Superscript

printing

63 3633

Subscript

printing

0 30 End

Super-/subscript

Type Styles

10 3130

Data

Processing

11 3131

Gothic

12 3132

OCR-A

13 3133

OCR-B

14 3134

Draft

15 3135

Courier

100 313030

Roman

101 313031

San-Serif

102 313032

Prestige

Figure 4 – Character Definition and Format Codes

Combining Attributes

As we mentioned, any of the attributes discussed in the ESC [nm sequence may be included in a
single escape sequence. The escape sequence begins the same as one requesting a single
code but changes after the first attribute byte. A semicolon (;) must be inserted between each
code listed in the sequence. For example, to print a single word in a sentence with the boldface
and underline attributes, send the escape sequence

ESC [ 1

; 4 m

1B 5B 31 3B 34 6D

immediately before the word in the data stream and follow the word with the escape sequence:

ESC [ 0 m

1B 5B 30 6D

Example: To boldface and italicize the word "only" in the sentence:

Enter: Boldface and italicize the word ESC[1;3monlyESC[0m in this sentence.

Printer Output: Boldface and italicize the word only in this sentence.