Sharp LCD library forked to use a Lucida 8 pt font
Fork of SharpLCD by
dotfont.h@6:ed1a32ac4a1c, 2015-04-28 (annotated)
- Committer:
- pwright01
- Date:
- Tue Apr 28 11:54:51 2015 +0000
- Revision:
- 6:ed1a32ac4a1c
- Child:
- 9:fc71206a6b64
New font system
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pwright01 | 6:ed1a32ac4a1c | 1 | #include <stdint.h> |
pwright01 | 6:ed1a32ac4a1c | 2 | |
pwright01 | 6:ed1a32ac4a1c | 3 | #ifndef __DOT_FONT_H__ |
pwright01 | 6:ed1a32ac4a1c | 4 | #define __DOT_FONT_H__ |
pwright01 | 6:ed1a32ac4a1c | 5 | |
pwright01 | 6:ed1a32ac4a1c | 6 | |
pwright01 | 6:ed1a32ac4a1c | 7 | #ifdef __cplusplus |
pwright01 | 6:ed1a32ac4a1c | 8 | extern "C" { |
pwright01 | 6:ed1a32ac4a1c | 9 | #endif |
pwright01 | 6:ed1a32ac4a1c | 10 | |
pwright01 | 6:ed1a32ac4a1c | 11 | #define LOWEST_DOT_CHARACTER_ENCODING ' ' |
pwright01 | 6:ed1a32ac4a1c | 12 | #define HIGHEST_DOT_CHARACTER_ENCODING '~' |
pwright01 | 6:ed1a32ac4a1c | 13 | |
pwright01 | 6:ed1a32ac4a1c | 14 | typedef struct FONT_CHAR_INFO { |
pwright01 | 6:ed1a32ac4a1c | 15 | int charWidth; |
pwright01 | 6:ed1a32ac4a1c | 16 | int charHeight; |
pwright01 | 6:ed1a32ac4a1c | 17 | int charOffset; |
pwright01 | 6:ed1a32ac4a1c | 18 | } FONT_CHAR_INFO; |
pwright01 | 6:ed1a32ac4a1c | 19 | |
pwright01 | 6:ed1a32ac4a1c | 20 | typedef struct FONT_INFO { |
pwright01 | 6:ed1a32ac4a1c | 21 | const char *familyName; |
pwright01 | 6:ed1a32ac4a1c | 22 | unsigned int pointSize; |
pwright01 | 6:ed1a32ac4a1c | 23 | const FONT_CHAR_INFO* descriptors; |
pwright01 | 6:ed1a32ac4a1c | 24 | const uint8_t* bitmaps; |
pwright01 | 6:ed1a32ac4a1c | 25 | } FONT_INFO; |
pwright01 | 6:ed1a32ac4a1c | 26 | |
pwright01 | 6:ed1a32ac4a1c | 27 | extern const FONT_INFO dotfonts[]; |
pwright01 | 6:ed1a32ac4a1c | 28 | |
pwright01 | 6:ed1a32ac4a1c | 29 | |
pwright01 | 6:ed1a32ac4a1c | 30 | extern const FONT_INFO *searchFontFace(const char *familyName, |
pwright01 | 6:ed1a32ac4a1c | 31 | unsigned int pointSize); |
pwright01 | 6:ed1a32ac4a1c | 32 | #ifdef __cplusplus |
pwright01 | 6:ed1a32ac4a1c | 33 | } |
pwright01 | 6:ed1a32ac4a1c | 34 | #endif |
pwright01 | 6:ed1a32ac4a1c | 35 | |
pwright01 | 6:ed1a32ac4a1c | 36 | #endif /* __DOT_FONT_H__ */ |