source: rtems/bsps/shared/dev/display/disp_fonts.h @ 762fa62

5
Last change on this file since 762fa62 was 27de4e1f, checked in by Sebastian Huber <sebastian.huber@…>, on 04/03/18 at 05:20:11

bsps: Move libchip to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 1.9 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| http://www.rtems.org/license/LICENSE.                           |
16|                                                                 |
17+-----------------------------------------------------------------+
18| This file declares general data structures for font management  |
19\*===============================================================*/
20
21#ifndef DISP_FONTS_H
22#define DISP_FONTS_H
23
24#include <rtems.h>
25
26typedef int8_t disp_font_dimen;
27
28struct disp_font_bounding_box
29{
30  disp_font_dimen w, h, x, y;
31};
32
33struct disp_font_glyph
34{
35  struct disp_font_bounding_box bb;
36  disp_font_dimen wx, wy;
37  const unsigned char *bitmap;
38};
39
40struct disp_font_base
41{
42  int8_t trans;
43  struct disp_font_bounding_box fbb;
44  disp_font_dimen ascent, descent;
45  uint8_t default_char;
46  struct disp_font_glyph *latin1[256];
47};
48
49typedef struct disp_font_base *disp_font_t;
50
51/* Prototypes ------------------------------------------------- */
52
53/* End -------------------------------------------------------- */
54
55#endif /* not defined DISP_FONTS_H */
Note: See TracBrowser for help on using the repository browser.