Intermec PB51 Fingerprint Developer's Guide (old) - Page 99

Checking the Size and Position of a Field, Creating Single-Line and Multi-Line Text Fields

Page 99 highlights

Chapter 6 - Designing Bar Code Labels 80 IF Z%>550 THEN GOTO 100 90 NEXT 100 PRINTFEED 110 END RUN Checking the Size and Position of a Field When printing a label, Fingerprint instructions are processed into a bitmap pattern that can be sent to the printhead. This process is called rendering. Use the RENDER OFF command to process instructions without printing anything. By combining RENDER OFF with various PRSTAT variables, you can determine the insertion point location, and thus the size and position of the field, without actually printing the field on a label. Use RENDER ON to restore printing as usual. Creating Single-Line and Multi-Line Text Fields A single-line text field consists of one or more alphanumeric characters on the same line. A multi-line text field consists of up to 20 lines of text with up to 300 single-byte characters per line. In addition to the standard positioning statements PRPOS, ALIGN and DIR, a single-line or multi-line text field can contain the following commands: • FONT and FONTD - Specifies the font to be used for the field. NORIMAGE and INVIMAGE - Sets regular or inverted printing. • PRTXT - Specifies input data for the text field. • PRBOX - Specifies the size of the box in which a text field is printed. Specifying a Font With FONT or FONTD Specifies the single- or double-byte font to be printed. Default choice is the singlebyte font Swiss 721 BT in 12-point size, no slant, and the width 100% of the height. The specified font is used for all text until a new FONT or FONTD statement is executed. Double-byte fonts may only be used in single-line text fields. Inverting Black and White Printing With NORIMAGE or INVIMAGE Normally, text is printed in black on the white background of the print media. Use the INVIMAGE command to print text in white on a black background. The size of the background is decided by the character cell. A NORIMAGE statement is only needed when changing back from INVIMAGE printing. Intermec Fingerprint Developer's Guide 83

  • 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

Chapter 6 — Designing Bar Code Labels
Intermec Fingerprint Developer’s Guide
83
80
IF Z%>550 THEN GOTO 100
90
NEXT
100
PRINTFEED
110
END
RUN
Checking the Size and Position of a Field
When printing a label, Fingerprint instructions are processed into a bitmap pattern
that can be sent to the printhead. This process is called rendering.
Use the RENDER OFF command to process instructions without printing
anything. By combining RENDER OFF with various PRSTAT variables, you can
determine the insertion point location, and thus the size and position of the field,
without actually printing the field on a label. Use RENDER ON to restore printing
as usual.
Creating Single-Line and Multi-Line Text Fields
A single-line text field consists of one or more alphanumeric characters on the same
line.
A multi-line text field consists of up to 20 lines of text with up to 300 single-byte
characters per line.
In addition to the standard positioning statements PRPOS, ALIGN and DIR, a
single-line or multi-line text field can contain the following commands:
FONT and FONTD - Specifies the font to be used for the field. NORIMAGE and
INVIMAGE - Sets regular or inverted printing.
PRTXT - Specifies input data for the text field.
PRBOX - Specifies the size of the box in which a text field is printed.
Specifying a Font With FONT or FONTD
Specifies the single- or double-byte font to be printed. Default choice is the single-
byte font Swiss 721 BT in 12-point size, no slant, and the width 100% of the height.
The specified font is used for all text until a new FONT or FONTD statement is
executed.
Double-byte fonts may only be used in single-line text fields.
Inverting Black and White Printing With NORIMAGE or INVIMAGE
Normally, text is printed in black on the white background of the print media. Use
the INVIMAGE command to print text in white on a black background. The size of
the background is decided by the character cell. A NORIMAGE statement is only
needed when changing back from INVIMAGE printing.