19
UBI EasyCoder 301 Direct Protocol – Programmer's Guide Ed. 1
Chapter 4 Label Design
3. Text Field
A text field consists of one or more alphanumeric characters on the
same line (max 300 characters). UBI Direct Protocol cannot wrap
text to a new line, but each line must be specified as a separate text
field.
UBI Direct Protocol has been extended to allow characters from
any national character set, such as Chinese, Cyrillic and Hebrew, to
be included in a text field. In this section we will discuss the com-
mands required to control the format of text fields containing char-
acters from the default character set, Roman 8 (see chapter 11.1).
The Direct Protocol commands related to printing characters from
other character sets are discussed in chapters 6.11 and 9.2.
In addition to the general formatting commands,
PRPOS, ALIGN
and
DIR
(see chapter 4.2), a text field can contain the following
commands:
• Font (typeface)
• Font Size (in points)
• Font Slant (in degrees)
• Magnification
• Normal Image/Inverse Image
Select a Font
The
FONT
command specifies the file name of the scalable font to
use and the height and the italic angle with which the characters
will be printed.
FONT | FT "<font file name>" [,<font size>,<font slant>]
<font file name>
the name of a Speedo or TrueType font file,
and must be enclosed by double quotation
marks.
<font size>
the height of the characters in points (a point
is a standard typographic unit, equal to 1/72
inches/0.352 mm).
<font slant>
the italic angle of the characters in degrees;
a positive value slants the characters clock-
wise away from the vertical.
Default:
"Swiss 721 BT", size 12p, slant 0
°
Reset to default by:
PRINTFEED|PF
Before using any of the standard fonts OCR-A BT, OCR-B 10 Pitch
BT or Zapf Dingbats BT, you must select a special character set for
that font by means of a
NASC
command (see chapters 6.11, 9,2 and
11.1). Before switching back to any other font than those mentioned
above, you must specify the original character set again by means
of a new
NASC
command.