
96
"C" Programming Guide For Optimus S/R
Syntax
int GetFont (void);
Example
if (GetFont()) == FONT_8X16 puts ("Font: 8X16");
Description
This routine returns font size information about the current font type.
Return
The return value can be one of the following:
FONT_6X8
: 6x8 graphic dots per character
FONT_8X16
: 8x16 graphic dots per character
FONT_6X12
: 6x12 graphic dots per character
FONT_12X12
: 12x12 graphic dots per character
See Also
SetFont
SetFont
Purpose
To select a font size for the LCD to display alphanumeric characters properly.
Syntax
void SetFont (int font);
int font; /* integer represents the font to be used */
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
: 6x8 graphic dots per character
FONT_8X16
: 8x16 graphic dots per character
FONT_6X12
: 6x12 graphic dots per character
FONT_12X12
: 12x12 graphic dots per character
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.
Return
None
See Also
GetFont, SetLanguage
Содержание Optimus R
Страница 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Страница 6: ......
Страница 8: ...2 C Programming Guide For Optimus S R...
Страница 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Страница 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Страница 24: ...18 C Programming Guide For Optimus S R...
Страница 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...
Страница 232: ...226 C Programming Guide For Optimus S R 4 11 Implementation defined Limits limits h float h Refer to limit h and float h...
Страница 238: ...232 C Programming Guide For Optimus S R...