Intermec PC43d Fingerprint Developer's Guide (PC23d, PC43d/t, PM23c, PM43, PM4 - Page 78

Managing Fonts, About Font Types, Selecting Fonts, Controlling Font Direction, Size, Slant, and Width

Page 78 highlights

Chapter 5 - Managing Fonts, Bar Codes, and Images Managing Fonts Fingerprint includes a variety of commands you can use to manage fonts and font printing. For more information about the fonts included by default with your printer, see the Fingerprint Command Reference Manual. About Font Types Fingerprint supports scalable fonts in TrueType® (.ttf) format, and TrueType-based OpenType® format. You can also purchase additional fonts from Monotype at www.fonts.com. Single-byte fonts are mapped in the range of ASCII 0-127 dec (7-bit communication) or ASCII 0-255 dec (8-bit communication). Some examples are Latin, Greek, Cyrillic, Arabic, and Hebrew fonts. Double-byte fonts are fonts that are mapped in the area of ASCII 0-65,536 dec. (8-bit communication only). Any glyph (such as characters, punctation marks, symbols, or digits) in the Unicode World Wide Character Standard can be specified. Example of languages that typically require double-byte fonts are Chinese, Japanese, and Korean. Selecting Fonts Use the FONT and BARFONT statements to select a font. Use the NASC statement to choose the corresponding character set. You can use these commands with both single- and double-byte fonts. For illustrations of the available character sets, see "Character Sets and Keywords" on page 133. All fonts stored in the printer memory can be listed to the standard OUT channel by a FONTS statement. This statement does not list font aliases. Another method of listing fonts is to use the FONTNAME$ function. You can also list fonts to the standard OUT channel using the FILES statement. This example shows how to list all fonts: 10 A$ = FONTNAME$(0) 20 IF A$ ="" THEN END 30 PRINT A$ 40 A$ = FONTNAME$(-1) 50 GOTO 20 RUN Controlling Font Direction, Size, Slant, and Width Fonts can be rotated in four directions using a DIR statement. Use the FONT and BARFONT commands to specify size in points (1 point = 1/72 in = 0.352 mm) and slant in degrees (clockwise). The width can be set as a percentage value relative the height. 66 Fingerprint Developer's Guide

  • 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

Chapter 5 — Managing Fonts, Bar Codes, and Images
66
Fingerprint Developer’s Guide
Managing Fonts
Fingerprint includes a variety of commands you can use to manage fonts and font
printing. For more information about the fonts included by default with your
printer, see the
Fingerprint Command Reference Manual.
About Font Types
Fingerprint supports scalable fonts in TrueType
®
(.ttf) format, and TrueType-based
OpenType
®
format. You can also purchase additional fonts from Monotype at
www.fonts.com
.
Single-byte fonts are mapped in the range of ASCII 0-127 dec (7-bit
communication) or ASCII 0-255 dec (8-bit communication). Some examples are
Latin, Greek, Cyrillic, Arabic, and Hebrew fonts.
Double-byte fonts are fonts that are mapped in the area of ASCII 0-65,536 dec. (8-bit
communication only). Any glyph (such as characters, punctation marks, symbols, or
digits) in the Unicode World Wide Character Standard can be specified. Example of
languages that typically require double-byte fonts are Chinese, Japanese, and
Korean.
Selecting Fonts
Use the FONT and BARFONT statements to select a font. Use the NASC statement
to choose the corresponding character set. You can use these commands with both
single- and double-byte fonts.
For illustrations of the available character sets, see
“Character Sets and Keywords”
on page 133
.
All fonts stored in the printer memory can be listed to the standard OUT channel by
a FONTS statement. This statement does not list font aliases. Another method of
listing fonts is to use the FONTNAME$ function. You can also list fonts to the
standard OUT channel using the FILES statement.
This example shows how to list all fonts:
10
A$ = FONTNAME$(0)
20
IF A$ =“” THEN END
30
PRINT A$
40
A$ = FONTNAME$(-1)
50
GOTO 20
RUN
Controlling Font Direction, Size, Slant, and Width
Fonts can be rotated in four directions using a DIR statement. Use the FONT and
BARFONT commands to specify size in points (1 point = 1/72 in = 0.352 mm) and
slant in degrees (clockwise). The width can be set as a percentage value relative the
height.