source: rtems/bsps/shared/dev/display/disp_fonts.h @ 9bf813c5

Last change on this file since 9bf813c5 was 9bf813c5, checked in by Joel Sherrill <joel@…>, on 03/01/22 at 21:38:43

bsps/shared/: Scripted embedded brains header file clean up

Updates #4625.

  • 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|                    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.