Clemens Valens
/
LED_panel
32x64 3-color message board http://elektorembedded.blogspot.com/
font.h@0:7a63bd42cf24, 2010-05-05 (annotated)
- Committer:
- Clemo
- Date:
- Wed May 05 12:04:34 2010 +0000
- Revision:
- 0:7a63bd42cf24
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Clemo | 0:7a63bd42cf24 | 1 | #ifndef __FONT_H__ |
Clemo | 0:7a63bd42cf24 | 2 | #define __FONT_H__ |
Clemo | 0:7a63bd42cf24 | 3 | |
Clemo | 0:7a63bd42cf24 | 4 | |
Clemo | 0:7a63bd42cf24 | 5 | typedef unsigned char uint8_t; |
Clemo | 0:7a63bd42cf24 | 6 | |
Clemo | 0:7a63bd42cf24 | 7 | |
Clemo | 0:7a63bd42cf24 | 8 | typedef struct |
Clemo | 0:7a63bd42cf24 | 9 | { |
Clemo | 0:7a63bd42cf24 | 10 | int width; // Character width in bits. |
Clemo | 0:7a63bd42cf24 | 11 | int offset; // Offset in bytes into font bitmap. |
Clemo | 0:7a63bd42cf24 | 12 | } |
Clemo | 0:7a63bd42cf24 | 13 | FONT_CHAR_INFO; |
Clemo | 0:7a63bd42cf24 | 14 | |
Clemo | 0:7a63bd42cf24 | 15 | |
Clemo | 0:7a63bd42cf24 | 16 | typedef struct |
Clemo | 0:7a63bd42cf24 | 17 | { |
Clemo | 0:7a63bd42cf24 | 18 | int height; // Character height in bits. |
Clemo | 0:7a63bd42cf24 | 19 | char start_char; // Start character. |
Clemo | 0:7a63bd42cf24 | 20 | const FONT_CHAR_INFO *p_character_descriptor; // Character decriptor array. |
Clemo | 0:7a63bd42cf24 | 21 | const uint8_t *p_character_bitmaps; // Character bitmap array. |
Clemo | 0:7a63bd42cf24 | 22 | } |
Clemo | 0:7a63bd42cf24 | 23 | FONT_INFO; |
Clemo | 0:7a63bd42cf24 | 24 | |
Clemo | 0:7a63bd42cf24 | 25 | |
Clemo | 0:7a63bd42cf24 | 26 | #endif // __FONT_H__ |