source: rtems/c/src/libchip/display/disp_fonts.h @ d0e2fa3

4.104.115
Last change on this file since d0e2fa3 was 9ec91233, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on 07/14/08 at 08:45:32

corrections in display driver

  • Property mode set to 100644
File size: 2.1 KB
Line 
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
29typedef int8_t disp_font_dimen;
30
31struct disp_font_bounding_box
32{
33  disp_font_dimen w, h, x, y;
34};
35
36struct disp_font_glyph
37{
38  struct disp_font_bounding_box bb;
39  disp_font_dimen wx, wy;
40  const unsigned char *bitmap;
41};
42
43struct 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
52typedef struct disp_font_base *disp_font_t;
53
54/* Prototypes ------------------------------------------------- */
55
56/* End -------------------------------------------------------- */
57
58#endif /* not defined DISP_FONTS_H */
Note: See TracBrowser for help on using the repository browser.