Demo Team / SharpLCD_LucidaFont

Fork of SharpLCD by Rohit Grover

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers dotfont.h Source File

dotfont.h

00001 #include <stdint.h>
00002 
00003 #ifndef __DOT_FONT_H__
00004 #define __DOT_FONT_H__
00005 
00006 
00007 #ifdef __cplusplus
00008 extern "C" {
00009 #endif
00010 
00011 #define LOWEST_DOT_CHARACTER_ENCODING ' '
00012 #define HIGHEST_DOT_CHARACTER_ENCODING '~'
00013 
00014 typedef struct FONT_CHAR_INFO {
00015     int          charWidth;
00016     int          charHeight;
00017     int          charOffset;
00018 } FONT_CHAR_INFO;
00019 
00020 typedef struct FONT_INFO {
00021     const char              *familyName;
00022     unsigned int            pointSize;
00023     unsigned int                     spacing;
00024     const FONT_CHAR_INFO*   descriptors;
00025     const uint8_t*          bitmaps;
00026 } FONT_INFO;
00027 
00028 extern const FONT_INFO dotfonts[];
00029 
00030 
00031 extern const FONT_INFO *searchFontFace(const char   *familyName,
00032                                          unsigned int  pointSize);
00033 #ifdef __cplusplus
00034 }
00035 #endif
00036                         
00037 #endif /* __DOT_FONT_H__ */