1 | /*===============================================================*\ |
---|
2 | | Project: display driver for HCMS29xx | |
---|
3 | +-----------------------------------------------------------------+ |
---|
4 | | File: disp_fonts.h | |
---|
5 | +-----------------------------------------------------------------+ |
---|
6 | | Copyright (c) 2008 | |
---|
7 | | Embedded Brains GmbH | |
---|
8 | | Obere Lagerstr. 30 | |
---|
9 | | D-82178 Puchheim | |
---|
10 | | Germany | |
---|
11 | | rtems@embedded-brains.de | |
---|
12 | +-----------------------------------------------------------------+ |
---|
13 | | The license and distribution terms for this file may be | |
---|
14 | | found in the file LICENSE in this distribution or at | |
---|
15 | | | |
---|
16 | | http://www.rtems.com/license/LICENSE. | |
---|
17 | | | |
---|
18 | +-----------------------------------------------------------------+ |
---|
19 | | This file declares general data structures for font management | |
---|
20 | +-----------------------------------------------------------------+ |
---|
21 | | $Id$ |
---|
22 | \*===============================================================*/ |
---|
23 | |
---|
24 | #ifndef DISP_FONTS_H |
---|
25 | #define DISP_FONTS_H |
---|
26 | |
---|
27 | #include <rtems.h> |
---|
28 | |
---|
29 | typedef int8_t disp_font_dimen; |
---|
30 | |
---|
31 | struct disp_font_bounding_box |
---|
32 | { |
---|
33 | disp_font_dimen w, h, x, y; |
---|
34 | }; |
---|
35 | |
---|
36 | struct disp_font_glyph |
---|
37 | { |
---|
38 | struct disp_font_bounding_box bb; |
---|
39 | disp_font_dimen wx, wy; |
---|
40 | const unsigned char *bitmap; |
---|
41 | }; |
---|
42 | |
---|
43 | struct disp_font_base |
---|
44 | { |
---|
45 | int8_t trans; |
---|
46 | struct disp_font_bounding_box fbb; |
---|
47 | disp_font_dimen ascent, descent; |
---|
48 | uint8_t default_char; |
---|
49 | struct disp_font_glyph *latin1[256]; |
---|
50 | }; |
---|
51 | |
---|
52 | typedef struct disp_font_base *disp_font_t; |
---|
53 | |
---|
54 | /* Prototypes ------------------------------------------------- */ |
---|
55 | |
---|
56 | /* End -------------------------------------------------------- */ |
---|
57 | |
---|
58 | #endif /* not defined DISP_FONTS_H */ |
---|