Single- And Double-Byte Fonts; Creating Double-Byte Text - Intermec Font Card Installation Instructions Manual

For easycoder pf2i, pf4i, pf4ci, pm4i, px4i and px6i
Table of Contents

Advertisement

Chapter 3 — Using Fonts in a Font Card

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). The 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. This 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

The 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. The first
character above ASCII 127 decimal will be interpreted as the first byte in
a double-byte glyph.
This 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
when switching from double-byte to single-byte fonts and not specifying
a single-byte character set, add the instruction
10
. In case of trouble with some Fingerprint versions
.
NASCD""
Font Card Installation Instructions

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents