Programming instructions

Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 790
Chapter 2 Program Instructions
FONTD
Field of Application
Statement for selecting a scaleable TrueType or TrueDoc double-byte
font for the printing of the subsequent PRTXT statements.
Syntax FONTD<sexp
1
>[,<nexp
1
>[,<nexp
2
>[,<nexp
3
>]]]
<sexp
1
> is the name of the font.
Default: none.
<nexp
1
> is optionally the height in points of the font.
Default: 12 points.
<nexp
2
> is the clockwise slant in degrees (0-90°).
Default: 0.
<nexp
3
> is the width enlargement in percent relative the height
(1-1000). Default: 100.
Reset to default by: PRINTFEED execution or CLL.
Remarks
This statement is identical to the FONT statement, but is used for fonts
speci ed by a double byte (16 bits) instead of a single byte (7 or 8 bits). To
use a double-byte font, a double-byte character set must be selected using
a NASCD statement. Usually, if the rst byte has an ASCII value between
161 dec. (A1 hex) and 254 dec (FE hex), the character will be treated
as a double-byte character and the rmware waits for next byte to make
the 16 bit address complete. The character will be printed using the font
speci ed by FONTD and according to the character set speci ed by NASCD
and the Unicode standard.
On the other hand, if the rst byte has an ASCII value below 161 dec.
(A1 hex), the character is treated as a single byte character and next byte
received will be regarded as the start of a new character. This implies
that the character set speci ed by NASC and the font speci ed by FONT
will be used. However, the selected Unicode double-byte character set
may specify some other ASCII value as the breaking point between single
and double byte character sets.
Note that 8 bit communication must be selected.
Only writing from left to right in the selected print direction is supported.
Example
The following text contains both single- and double-byte fonts. The double-byte
font and its character set are stored in a Font Install Card:
10 NASC 46
20 FONT "Swiss 721 BT", 24, 10
30 NASCD "rom:BIG5.NCD"
40 FONTD "Chinese"
50 PRTXT CHR$(65);CHR$(161);CHR$(162)
60 PRINTFEED
RUN
This program yields a printed text line that starts with the Latin character A
(ASCII 65 dec.) followed by the Chinese font that corresponds to the address
161+162 dec. in the character set BIG5.NCD".