Oki ML591 MICROLINE Reference Manual - Page 74

Italics Print Commands IBM/E/ML, Table 32: Epson ESC ! Command, Print Features for n Values

Page 74 highlights

Table 32: Epson ESC ! Command - Print Features for n Values Feature Compressed printing Double width printing 12 cpi (Elite) printing Emphasized printing Enhanced printing Italics printing Proportional printing Underline printing Value 4 32 1 8 16 64 2 128 For example, to print underlined italics at 12 cpi, assign n the value of 193 (128 + 64 + 1). Each time you send this command, it sets or cancels the values for all nine of the features it controls (the eight features listed in the table, plus 10 cpi). This means that if you've requested 12 cpi underline italics, and then want to add emphasized printing to these features, you must add 8 to 193 and resend the command as ESC ! 210. If you send the command ESC ! 8, it will turn off all the other features as it turns on emphasized print. To see the range of print styles you can produce with the ESC ! n command, run the following BASIC program which prints a sample of each possible combination. Please note that since the program prints all 256 combinations, it will take a few minutes and about 12 pages for the entire sample to print. 10 FOR I = 0 TO 255 20 LPRINT:LPRINT 30 LPRINT CHR$(27);"!";CHR$(I);"ESC !";I;" selects this combination." 40 NEXT I Italics Print Commands (IBM/E/ML) ߜ ML320 E/I, ML321 E/I ߜ ML320 Std., ML321 Std. ߜ ML320 Turbo, ML321 Turbo ߜ ML390 Turbo, ML391 Turbo ߜ ML520, ML521 ߜ ML590, ML591 Function Italics Printing On Italics Printing Off IBM ASCII: ESC % G Dec: 27 37 71 Hex: 1B 25 47 ASCII: ESC % H Dec: 27 37 72 Hex: 1B 25 48 Epson ASCII: ESC 4 Dec: 27 52 Hex: 1B 34 ASCII: ESC 5 Dec: 27 53 Hex: 1B 35 ML ASCII: ESC ! / Dec: 27 33 47 Hex: 1B 21 2F ASCII: ESC ! * Dec: 27 33 42 Hex: 1B 21 2A Italics printing is slanted, like this, and is used to lend emphasis to phrases, sentences, or entire paragraphs. Chapter 4: Character Style Commands 35

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180

Chapter 4: Character Style Commands
35
Table 32: Epson ESC ! Command —
Print Features for n Values
Feature
Value
Compressed printing
4
Double width printing
32
12 cpi (Elite) printing
1
Emphasized printing
8
Enhanced printing
16
Italics printing
64
Proportional printing
2
Underline printing
128
For example, to print underlined italics at 12 cpi, assign n the value of 193 (128 + 64 + 1).
Each time you send this command, it sets or cancels the values for all nine of the features it
controls (the eight features listed in the table, plus 10 cpi). This means that if you've requested
12 cpi underline italics, and then want to add emphasized printing to these features, you must
add 8 to 193 and resend the command as ESC ! 210. If you send the command ESC ! 8, it will
turn off all the other features as it turns on emphasized print.
To see the range of print styles you can produce with the ESC ! n command, run the following
BASIC program which prints a sample of each possible combination. Please note that since the
program prints all 256 combinations, it will take a few minutes and about 12 pages for the
entire sample to print.
10 FOR I = 0 TO 255
20 LPRINT:LPRINT
30 LPRINT CHR$(27);"!";CHR$(I);"ESC !";I;" selects this combination."
40 NEXT I
Italics Print Commands (IBM/E/ML)
±
ML320 E/I, ML321 E/I
±
ML320 Turbo, ML321 Turbo
±
ML520, ML521
±
ML320 Std., ML321 Std.
±
ML390 Turbo, ML391 Turbo
±
ML590, ML591
Function
IBM
Epson
ML
Italics Printing On
ASCII: ESC % G
Dec: 27 37 71
Hex: 1B 25 47
ASCII: ESC 4
Dec: 27 52
Hex: 1B 34
ASCII: ESC ! /
Dec: 27 33 47
Hex: 1B 21 2F
Italics Printing Off
ASCII: ESC % H
Dec: 27 37 72
Hex: 1B 25 48
ASCII: ESC 5
Dec: 27 53
Hex: 1B 35
ASCII: ESC ! *
Dec: 27 33 42
Hex: 1B 21 2A
Italics printing is slanted,
like this
, and is used to lend emphasis to phrases, sentences, or entire
paragraphs.