Oki ML591 MICROLINE Reference Manual - Page 58

Select Character Pitch/Point Size Command IBM-Oki unique

Page 58 highlights

Example To set a point size (Np) of 216: Np= [Lp + (Hp x 255] x 0.5 1. Assign a value of 1 to Hp. 2. Multiply 216 by 2: 216 x 2 = 432. 3. Subtract 255 from 432: 432 - 255 = 177., then round this value down to the nearest even number, 176. Assign this value to Lp. Here is a sample BASIC program to test your calculated values: ESC$ = CHR$(27) LPRINT ESC$; "@"; LPRINT "This is a test of the Select Pitch and Point Size Command." LPRINT "This is the default text mode." LPRINT "The characters below should be the maximum character height of 216 points." LPRINT ESC$; "X"; CHR$(1); CHR$ (176); CHR$(1) LPRINT "Hy" Select Character Pitch/Point Size Command (IBM-Oki unique) ߜ ML320 Turbo, ML321 Turbo ߜ ML390 Turbo, ML391 Turbo ߜ ML590, ML591 Function Select Character Pitch/ Point Size ASCII ESC DLE F Pno Pn Lp Hp Dec 27 16 70 Pno Pn Lp Hp Hex 1B 10 46 Pno Pn Lp Hp Use this OKI unique command to select printable fonts by character pitch and point size. Parameter Pno This parameter is used to give the number of bytes to follow in the subsequent parameters. It can have any value from 0 to 255 decimal. Generally, a value of 3 is assigned to Pno. Parameter Pn Parameter Pn is used to set the character pitch. It can have the following values: ML320 Turbo, ML321 Turbo: 0 1o 127 ML390 Turbo, ML391 Turbo: 0 to 255 ML590, ML591: 0 to 127 See "Table 16: Epson ESC X Command - Character Pitch Settings for Pn Values," above. Chapter 3: Character Size & Spacing Commands 19

  • 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 3: Character Size & Spacing Commands
19
Example
To set a point size (N
p
) of 216:
N
p
= [L
p
+ (H
p
x 255] x 0.5
1.
Assign a value of 1 to H
p
.
2.
Multiply 216 by 2: 216 x 2 = 432.
3.
Subtract 255 from 432: 432 - 255 = 177., then round this value down to the nearest even
number, 176. Assign this value to L
p
.
Here is a sample BASIC program to test your calculated values:
ESC$ = CHR$(27)
LPRINT ESC$; "@";
LPRINT "This is a test of the Select Pitch and Point Size Command."
LPRINT "This is the default text mode."
LPRINT "The characters below should be the maximum character height of 216
points."
LPRINT ESC$; "X"; CHR$(1); CHR$ (176); CHR$(1)
LPRINT "Hy"
Select Character Pitch/Point Size Command (IBM–Oki unique)
±
ML320 Turbo, ML321 Turbo
±
ML390 Turbo, ML391 Turbo
±
ML590, ML591
Function
ASCII
Dec
Hex
Se
lect Character
Pitch/ Point Size
ESC DLE F P
no
P
n
L
p
H
p
27 16 70 P
no
P
n
L
p
H
p
1B 10 46 P
no
P
n
L
p
H
p
Use this OKI unique command to select printable fonts by character pitch and point size.
Parameter P
no
This parameter is used to give the number of bytes to follow in the subsequent parameters. It
can have any value from 0 to 255 decimal. Generally, a value of 3 is assigned to P
no
.
Parameter P
n
Parameter P
n
is used to set the character pitch. It can have the following values:
ML320 Turbo, ML321 Turbo: 0 1o 127
ML390 Turbo, ML391 Turbo: 0 to 255
ML590, ML591: 0 to 127
See "Table 16: Epson ESC X Command — Character Pitch Settings for P
n
Values," above.