comparison src/condat3/com/include/font_bitmaps.h @ 18:c8bd5a927942

src/condat3: import of "condat" tree from TCS3.2, pruned
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 27 Sep 2016 21:25:36 +0000
parents
children
comparison
equal deleted inserted replaced
17:6323e661f2ed 18:c8bd5a927942
1 /*
2 +-----------------------------------------------------------------------------
3 | Project :
4 | Modul : display
5 +-----------------------------------------------------------------------------
6 | Copyright 2002 Texas Instruments Berlin, AG
7 | All rights reserved.
8 |
9 | This file is confidential and a trade secret of Texas
10 | Instruments Berlin, AG
11 | The receipt of or possession of this file does not convey
12 | any rights to reproduce or disclose its contents or to
13 | manufacture, use, or sell anything it may describe, in
14 | whole, or in part, without the specific written consent of
15 | Texas Instruments Berlin, AG.
16 +-----------------------------------------------------------------------------
17 | Purpose :
18 +-----------------------------------------------------------------------------
19 */
20 #ifndef FONT_BITMAPS_H
21 #define FONT_BITMAPS_H
22
23
24 typedef struct{
25
26 USHORT code;
27 UBYTE format;
28 UBYTE height;
29 UBYTE width;
30 UBYTE bitmapSize;
31 char* bitmap;
32 }t_font_bitmap;
33
34 enum {
35 /*---------------------------USE VALUES BETWEEN -1 TO 254------------------------------*/
36 NO_FONT=-1,
37 //Currently we only support this font for smaller displays
38 #ifndef LSCREEN
39 DEFAULT_8x6=0,
40 #endif
41 //We need only support this font on larger displays
42 #ifdef LSCREEN
43 CHANTICLE_PROP15 = 1,
44 #if 0 //Using Arial-type may be problematic - disable
45 ARIAL_PROP15 = 2,
46 #endif
47
48 #endif
49 LAST_FONT
50 /*---------------------------USE VALUES BETWEEN -1 TO 254-------------------------------*/
51 };
52
53
54 t_font_bitmap* get_bitmap(USHORT selected_code);
55 USHORT font_setFont(USHORT font);
56 USHORT font_getFont(void);
57 USHORT font_getCharWidth(USHORT selected_code);
58 void font_initFont( int defaultFont );
59 /* SPR#1983 - SH - Get list of all ascii font widths in array */
60 void font_getAllAsciiWidths(UBYTE *width);
61
62 #endif