diff --git a/libraries/oleddrv/font.h b/libraries/oleddrv/font.h new file mode 100644 --- /dev/null +++ b/libraries/oleddrv/font.h @@ -0,0 +1,11 @@ +#ifndef FONT_H +#define FONT_H + +typedef unsigned long(*pfnFontDrawChar)(pfnDrawBlock_t DrawBlock,Pos_t x, Pos_t y, unsigned int ch); + +unsigned long SongSmall5_DrawChar(pfnDrawBlock_t DrawBlock,Pos_t x, Pos_t y,unsigned int ch); + +#define GetFontTextHeight(pfnFont,ch) pfnFont(0,0,0,(unsigned char)(ch)) +#define GetFontTextWidth(pfnFont,ch) pfnFont(0,1,0,(unsigned char)(ch)) + +#endif