Metrologic Optimus S Programming Manual page 102

"c" programming guide
Table of Contents

Advertisement

96
"C" Programming Guide For Optimus S/R
SetFont
int GetFont (void);
Syntax
Example
if (GetFont()) == FONT_8X16 puts ("Font: 8X16");
Description
This routine returns font size information about the current font type.
The return value can be one of the following:
Return
FONT_6X8
FONT_8X16
FONT_6X12
FONT_12X12
See Also
SetFont
Purpose
To select a font size for the LCD to display alphanumeric characters properly.
Syntax
void SetFont (int font);
int font;
Example
SetFont (FONT_8X16);
Description
This routine specifies what size of font is to be used following this call.
The value of the parameter font depends on the current font and its available
font size options. It can be one of the following:
FONT_6X8
FONT_8X16
FONT_6X12
FONT_12X12
Single-byte Characters:
For single-byte characters (system, multilanguage, etc.), simply assign
either FONT6X8 or FONT_8X16.
16x16 Double-byte Characters:
You may assign FONT_6X8 or FONT_8X16 to display alphanumeric
characters.
12x12 Double-byte Characters:
If you assign FONT_6X12, the font size for single byte characters will be
6x12, while it will still take 12x12 for double-byte characters (Tc12, Sc12,
Jp12). It thus provides flexibility in displaying alphanumeric.
However, for Japanese Katakana, you have to assign FONT_12X12;
otherwise, the cursor position will be misplaced.
None
Return
See Also
GetFont, SetLanguage
: 6x8 graphic dots per character
: 8x16 graphic dots per character
: 6x12 graphic dots per character
: 12x12 graphic dots per character
/* integer represents the font to be used */
: 6x8 graphic dots per character
: 8x16 graphic dots per character
: 6x12 graphic dots per character
: 12x12 graphic dots per character

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents