17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

FONTD<br />

Chapter 2 Program Instructions<br />

Field of Application Statement for selecting a scalable TrueType or TrueDoc double-byte<br />

font for the printing of the subsequent PRTXT statements.<br />

Syntax FONTD[,[,[,]]]<br />

1 1 2 3<br />

1 is the name of the font.<br />

Default: none<br />

1 is optionally the height in points of the font.<br />

Default: 12 points.<br />

2 is the clockwise slant in degrees (0–90°).<br />

Default: 0.<br />

3 is the width enlargement in percent relative the height (1–<br />

1000). Default: 100.<br />

Reset to default by: PRINTFEED execution or CLL<br />

Remarks This statement is identical to the FONT statement, but is used for fonts<br />

specified by a double byte (16 bits) instead of a single byte (7 or 8 bits). To<br />

use a double-byte font, a double-byte character set must be selected using a<br />

NASCD statement. Usually, if the first byte has an ASCII value between 161<br />

dec. (A1 hex.) and 254 dec (FE hex), the character will be treated as a doublebyte<br />

character and the program waits for next byte to make the 16 bit address<br />

complete. The character will be printed using the font specified by FONTD<br />

and according to the character set specified by NASCD and the Unicode<br />

standard.<br />

On the other hand, if the first byte has an ASCII value below 161 dec. (A1<br />

hex), the character is treated as a single byte character (i.e. next byte received<br />

will be regarded as the start of a new character). This implies that the character<br />

set specified by NASC and the font specified by FONT will be used.<br />

However, the selected Unicode double-byte character set may specify some<br />

other ASCII value as the breaking point between single anddouble bytew<br />

character sets.<br />

Note that 8 bit communication must be selected.<br />

Only writing from left to right in the selected print direction is supported.<br />

Example The following text contains both single- and double-byte fonts. The doublebyte<br />

font and its character set are stored in a Font Install Card:<br />

10 NASC 46<br />

20 FONT "Swiss 721 BT", 24, 10<br />

30 NASCD "rom:BIG5.NCD"<br />

40 FONTD "Chinese"<br />

50 PRTXT CHR$(65);CHR$(161);CHR$(162)<br />

60<br />

RUN<br />

PRINTFEED<br />

This program yields a printed text line that starts with the Latin character A<br />

(ASCII 65 dec.) followed by the Chinese font that corresponds to the address<br />

161+162 dec. in the character set “BIG5.NCD”.<br />

<strong>Intermec</strong> Fingerprint 7.2 – Reference Manual Ed. 3 78

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!