comparison g23m/condat/com/include/font_bitmaps.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
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 NO_FONT=-1,
36 //Currently we only support this font for smaller displays
37 #ifndef LSCREEN
38 DEFAULT_8x6=0,
39 #endif
40 //We need only support this font on larger displays
41 #ifdef LSCREEN
42 CHANTICLE_PROP15 = 1,
43 #if 0 //Using Arial-type may be problematic - disable
44 ARIAL_PROP15 = 2,
45 #endif
46
47 #endif
48 LAST_FONT
49 };
50
51
52 t_font_bitmap* get_bitmap(USHORT selected_code);
53 USHORT font_setFont(USHORT font);
54 USHORT font_getFont(void);
55 USHORT font_getCharWidth(USHORT selected_code);
56 void font_initFont( int defaultFont );
57 /* SPR#1983 - SH - Get list of all ascii font widths in array */
58 void font_getAllAsciiWidths(UBYTE *width);
59
60 #endif