HP Deskjet 320 Solutions Guide - Page 181

HP PCL Printer Commands and Control Codes, Font Selection Commands

Page 181 highlights

Table A-1. HP PCL Printer Command Summary (Continued) Command Topic Printer Feature Character Set † PC-8 HP Roman8 PC-8 Danish/Norwegian PC-850 ECMA-94 Latin 1 German (ISO 21) French (ISO 69) Italian (ISO 15) Spanish (ISO 17) Swedish Names (ISO 11) Swedish (ISO 10) Norwegian1 (ISO 60) Norwegian2 (ISO 61) Portuguese (ISO 16) United Kingdom (ISO 4) ANSI ASCII (ISO 6) JIS ASCII HP Legal ISO IRV Spacing † Proportional Fixed Print Pitch † Number of characters per inch Point Size (Character Number of 1/72nds inch Height) † Style † Upright Italic Stroke Weight † Normal Bold Extra Bold (optional) Typeface † Courier CG Times Letter Gothic Univers Print Quality Letter Placement1 Draft Superscript Normal Primary Font2 Designators Subscript Default character set Current primary character set Default font Printer Command Decimal Equivalent Font Selection Commands Ec(10U Ec(8U Ec(11U Ec(12U Ec(0N Ec(1G Ec(1F Ec(0I Ec(2S Ec(0S Ec(3S Ec(0D Ec(1D Ec(4S Ec(1E Ec(0U Ec(0K Ec(1U Ec(2U Ec(s1P Ec(s0P Ec(s#H Ec(s#V 027 040 049 048 085 027 040 056 085 027 040 049 049 085 027 040 049 050 085 027 040 048 078 027 040 049 071 027 040 049 070 027 040 048 073 027 040 050 083 027 040 048 083 027 040 051 083 027 040 048 068 027 040 049 068 027 040 052 083 027 040 049 069 027 040 048 085 027 040 048 075 027 040 049 085 027 040 051 085 027 040 115 049 080 027 040 115 048 080 027 040 115 #...# 072 027 040 115 #...# 086 Ec(s0S Ec(s1S Ec(s0B Ec(s3B Ec(s7B Ec(s3T Ec(s4101T Ec(s6T Ec(s52T Ec(s2Q Ec(s1Q Ec(s+1U Ec(s0U Ec(s-1U Ec(0@ Ec(2@ Ec(3@ 027 040 115 048 083 027 040 115 049 083 027 040 115 048 066 027 040 115 051 066 027 040 115 055 066 027 040 115 051 084 027 040 115 052 049 048 049 084 027 040 115 054 084 027 040 115 053 050 084 027 040 115 050 081 027 040 115 049 081 027 040 115 043 049 085 027 040 115 048 085 027 040 115 045 049 085 027 040 048 064 027 040 050 064 027 040 051 064 Hex Equivalent 1B 28 31 30 55 1B 28 38 55 1B 28 31 31 55 1B 28 31 32 55 1B 28 30 4E 1B 28 31 47 1B 28 31 46 1B 28 30 49 1B 28 32 53 1B 28 30 53 1B 28 33 53 1B 28 30 44 1B 28 31 44 1B 28 34 53 1B 28 31 45 1B 28 30 55 1B 28 30 4B 1B 28 31 55 1B 28 32 55 1B 28 73 31 50 1B 28 73 30 50 1B 28 73 #...# 48 1B 28 73 #...# 56 1B 28 73 30 53 1B 28 73 31 53 1B 28 73 30 42 1B 28 73 33 42 1B 28 73 37 42 1B 28 73 33 54 1B 28 73 34 31 30 31 54 U1B 28 73 36 54 1B 28 73 35 32 54 1B 28 73 32 51 1B 28 73 31 51 1B 28 73 2B 31 55 1B 28 73 30 55 1B 28 73 2D 31 55 1B 28 30 40 1B 28 32 40 1B 29 #...# 58 † These printer commands are listed in the order in which they must be sent. # Indicates the numeric value field. 1. This is an obsolete command. Hewlett-Packard suggests that it not be used in code developed for HP DeskJet 300 Series printers. 2. This is a testing command; it is not recommended for use. HP PCL Printer Commands and Control Codes A-3

  • 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
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202

HP PCL Printer Commands and Control Codes
A-3
Font Selection Commands
Character Set
PC-8
E
c
(10U
027 040 049 048 085
1B 28 31 30 55
HP Roman8
E
c
(8U
027 040 056 085
1B 28 38 55
PC-8 Danish/Norwegian
E
c
(11U
027 040 049 049 085
1B 28 31 31 55
PC-850
E
c
(12U
027 040 049 050 085
1B 28 31 32 55
ECMA-94 Latin 1
E
c
(0N
027 040 048 078
1B 28 30 4E
German (ISO 21)
E
c
(1G
027 040 049 071
1B 28 31 47
French (ISO 69)
E
c
(1F
027 040 049 070
1B 28 31 46
Italian (ISO 15)
E
c
(0I
027 040 048 073
1B 28 30 49
Spanish (ISO 17)
E
c
(2S
027 040 050 083
1B 28 32 53
Swedish Names (ISO 11)
E
c
(0S
027 040 048 083
1B 28 30 53
Swedish (ISO 10)
E
c
(3S
027 040 051 083
1B 28 33 53
Norwegian1 (ISO 60)
E
c
(0D
027 040 048 068
1B 28 30 44
Norwegian2 (ISO 61)
E
c
(1D
027 040 049 068
1B 28 31 44
Portuguese (ISO 16)
E
c
(4S
027 040 052 083
1B 28 34 53
United Kingdom (ISO 4)
E
c
(1E
027 040 049 069
1B 28 31 45
ANSI ASCII (ISO 6)
E
c
(0U
027 040 048 085
1B 28 30 55
JIS ASCII
E
c
(0K
027 040 048 075
1B 28 30 4B
HP Legal
E
c
(1U
027 040 049 085
1B 28 31 55
ISO IRV
E
c
(2U
027 040 051 085
1B 28 32 55
Spacing
Proportional
E
c
(s1P
027 040 115 049 080
1B 28 73 31 50
Fixed
E
c
(s0P
027 040 115 048 080
1B 28 73 30 50
Print Pitch
Number of characters per inch
E
c
(s#H
027 040 115 #...# 072
1B 28 73 #...# 48
Point Size (Character
Height)
Number of 1/72nds inch
E
c
(s#V
027 040 115 #...# 086
1B 28 73 #...# 56
Style
Upright
E
c
(s0S
027 040 115 048 083
1B 28 73 30 53
Italic
E
c
(s1S
027 040 115 049 083
1B 28 73 31 53
Stroke Weight
Normal
E
c
(s0B
027 040 115 048 066
1B 28 73 30 42
Bold
E
c
(s3B
027 040 115 051 066
1B 28 73 33 42
Extra Bold (optional)
E
c
(s7B
027 040 115 055 066
1B 28 73 37 42
Typeface
Courier
E
c
(s3T
027 040 115 051 084
1B 28 73 33 54
CG Times
E
c
(s4101T
027 040 115 052 049 048 049 084
1B 28 73 34 31 30 31 54
Letter Gothic
E
c
(s6T
027 040 115 054 084
U1B 28 73 36 54
Univers
E
c
(s52T
027 040 115 053 050 084
1B 28 73 35 32 54
Print Quality
Letter
E
c
(s2Q
027 040 115 050 081
1B 28 73 32 51
Draft
E
c
(s1Q
027 040 115 049 081
1B 28 73 31 51
Placement
1
Superscript
E
c
(s+1U
027 040 115 043 049 085
1B 28 73 2B 31 55
Normal
E
c
(s0U
027 040 115 048 085
1B 28 73 30 55
Subscript
E
c
(s-1U
027 040 115 045 049 085
1B 28 73 2D 31 55
Primary Font
2
Designators
Default character set
E
c
(0@
027 040 048 064
1B 28 30 40
Current primary character set
E
c
(2@
027 040 050 064
1B 28 32 40
Default font
E
c
(3@
027 040 051 064
1B 29 #...# 58
† These printer commands are listed in the order in which they must be sent.
# Indicates the numeric value field.
1.
This is an obsolete command. Hewlett-Packard suggests that it not be used in code developed for HP DeskJet 300 Series printers.
2.
This is a testing command; it is not recommended for use.
Table A-1.
HP PCL Printer Command Summary (Continued)
Command Topic
Printer Feature
Printer Command
Decimal Equivalent
Hex Equivalent