System font
[Font support]

Collaboration diagram for System font:

Defines

#define SYSFONT_WIDTH   6
 Width of each glyph, including spacer column.
#define SYSFONT_HEIGHT   7
 Height of each glyph, excluding spacer line.
#define SYSFONT_LINESPACING   8
 Line height.
#define SYSFONT_FIRSTCHAR   ((uint8_t) ' ')
 First character defined.
#define SYSFONT_LASTCHAR   ((uint8_t) 127)
 Last character defined.
#define SYSFONT_DEFINE_GLYPHS
 Define variable containing the font.

Variables

struct font sysfont
 Initialize a basic system font.

Detailed Description

The system font objects are globaly available for a graphical application. System fonts are by design read only, hence there are not any functions to change them during runtime. If the application needs additional fonts it should add additional font objects.


Define Documentation

#define SYSFONT_DEFINE_GLYPHS

Define variable containing the font.

Definition at line 65 of file sysfont.h.

#define SYSFONT_FIRSTCHAR   ((uint8_t) ' ')

First character defined.

Definition at line 59 of file sysfont.h.

#define SYSFONT_HEIGHT   7

Height of each glyph, excluding spacer line.

Definition at line 55 of file sysfont.h.

#define SYSFONT_LASTCHAR   ((uint8_t) 127)

Last character defined.

Definition at line 61 of file sysfont.h.

#define SYSFONT_LINESPACING   8

Line height.

Definition at line 57 of file sysfont.h.

#define SYSFONT_WIDTH   6

Width of each glyph, including spacer column.

Definition at line 53 of file sysfont.h.


Variable Documentation

struct font sysfont
Initial value:
 {
        .type           = FONT_LOC_PROGMEM,
        .width          = SYSFONT_WIDTH,
        .height         = SYSFONT_HEIGHT,
        .scale          = 1,
        .first_char     = SYSFONT_FIRSTCHAR,
        .last_char      = SYSFONT_LASTCHAR,
        .data           = {
                .progmem        = sysfont_glyphs,
        },
}

Initialize a basic system font.

This initializes a basic system font globally usable by the application.

Definition at line 68 of file sysfont.c.

Referenced by sub_frame_draw_handler(), wtk_button_handler(), wtk_button_size_hint(), wtk_check_box_handler(), wtk_check_box_size_hint(), wtk_frame_handler(), wtk_label_handler(), wtk_label_size_hint(), wtk_radio_button_handler(), and wtk_radio_button_size_hint().

Generated on Thu Apr 29 15:18:22 2010 for display-training by  doxygen 1.6.3