Sharp LCD library forked to use a Lucida 8 pt font
Fork of SharpLCD by
dotfont.h@9:fc71206a6b64, 2015-05-13 (annotated)
- Committer:
- pwright01
- Date:
- Wed May 13 08:14:07 2015 +0000
- Revision:
- 9:fc71206a6b64
- Parent:
- 6:ed1a32ac4a1c
new fonts
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 | 9:fc71206a6b64 | 23 | unsigned int spacing; |
pwright01 | 6:ed1a32ac4a1c | 24 | const FONT_CHAR_INFO* descriptors; |
pwright01 | 6:ed1a32ac4a1c | 25 | const uint8_t* bitmaps; |
pwright01 | 6:ed1a32ac4a1c | 26 | } FONT_INFO; |
pwright01 | 6:ed1a32ac4a1c | 27 | |
pwright01 | 6:ed1a32ac4a1c | 28 | extern const FONT_INFO dotfonts[]; |
pwright01 | 6:ed1a32ac4a1c | 29 | |
pwright01 | 6:ed1a32ac4a1c | 30 | |
pwright01 | 6:ed1a32ac4a1c | 31 | extern const FONT_INFO *searchFontFace(const char *familyName, |
pwright01 | 6:ed1a32ac4a1c | 32 | unsigned int pointSize); |
pwright01 | 6:ed1a32ac4a1c | 33 | #ifdef __cplusplus |
pwright01 | 6:ed1a32ac4a1c | 34 | } |
pwright01 | 6:ed1a32ac4a1c | 35 | #endif |
pwright01 | 6:ed1a32ac4a1c | 36 | |
pwright01 | 6:ed1a32ac4a1c | 37 | #endif /* __DOT_FONT_H__ */ |