Font Scaling - Intermec EasyCoder 301 Programmer's Manual

Direct protocol 2.0
Hide thumbs Also See for EasyCoder 301:
Table of Contents

Advertisement

3. Font Scaling

Intermec EasyCoder 301 Direct Protocol 2.0 – Programmer's Guide Ed. 3
In general, the EasyCoder 301 scales characters "on the fly" into
bitmaps ready for printing. It stores as many character bitmaps as
possible in a memory cache, to avoid having to rescale characters
which are used more than once. Character bitmaps are deleted from
the cache automatically by the printer, and so characters which are
used often usually need to be rescaled frequently.
In some instances it can take a long time for the printer to scale
characters, such as when using double-byte TrueType fonts on a
card. The user can force the printer to hold character bitmaps in the
cache using the following command:
PRESCALE | PS "<string of characters>"
<string of char.>
Example:
The 10 digits from a single-byte font and the ren character from a
double-byte font are prescaled.
NASCD "CARD1:BIG5.NCD"
FONT "Swiss 721 BT",50,10
FONTD "CARD1:HOMINCHO.TTF"
DIR 2
MAG 2,1
PS "0123456789";CHR$(164);CHR$(56)
The contents of a character bitmap depend on all of the following
settings:
• Single-byte character:
DIR, MAG, NASC, FONT, FONTSIZE, FONTSLANT
• Double-byte character:
DIR, MAG, NASCD, FONTD, FONTDSIZE, FONTDSLANT
The printer holds prescaled characters for the last 15 combinations
of these settings. When a new combination is used, (for example,
when the specification of DIR is changed), the prescaled characters
for the 15th previous combination are lost. All prescaled characters
are lost when the printer is turned off.
Chapter 9
an ASCII string specifying all the characters
that are to be scaled from the current single-
and double-byte fonts. It is interpreted ac-
cording to the current NASC and NASCD set-
tings.
Advanced Features
71

Advertisement

Table of Contents
loading

Table of Contents