EasyManua.ls Logo

Intermec Font Card - Understanding Single and Double-Byte Fonts; Printing Double-Byte Text

Intermec Font Card
18 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 3 — Using Fonts in a Font Card
10 Font Card Installation Instructions
Single- and Double-Byte Fonts
Latin, Cyrillic, Hebrew, and Arabic fonts are single-byte fonts, that
is, each letter, number, or punctuation mark (glyph) is specified by a
decimal ASCII value between 032 and 256 (000-031 are non-print
-
able control characters). e relation between glyph and ASCII value is
decided by a character set.
Most Asian fonts are double-byte fonts, that is, each glyph is specified by
a combination of two one-byte ASCII decimal values. is theoretically
allows more than 65,000 different glyphs to be used. Each font has its
own character set.
Fingerprint has different instruction for single- and double-byte fonts:
FONT specifies a single-byte font
NASC specifies a single-byte character set
FONTD specifies a double-byte font
NASCD specifies a double-byte character set
Also refer to Intermec Fingerprint v8.xx, Programmer‘s Reference Manual
.
Creating Double-Byte Text
e Fingerprint instruction CHR$ is used to specify ASCII values that
cannot be typed on the keyboard of the host. For example, CHR$(65)
specifies the ASCII decimal value 065, which will yield an uppercase A
when using a Latin character set. When using double-byte fonts, use the
same principle, but specify two ASCII values instead of one. e first
character above ASCII 127 decimal will be interpreted as the first byte in
a double-byte glyph.
is example that shows how to print three simplified Chinese glyphs.
Be careful to specify the double-byte font before the character set.
FONTD "Song", 18
NASCD "GB2312.NCD"
A$=CHR$(176)+CHR$(163)+CHR$(176)+CHR$(164)+CHR$(176)+CHR$(65)
PRTXT A$
PRINTFEED
For other examples, LOAD and LIST the demonstration program
972570xx.PRG. In case of trouble with some Fingerprint versions
when switching from double-byte to single-byte fonts and not specifying
a single-byte character set, add the instruction
NASCD"".

Related product manuals