Wakeup Light with touch user interface, anti-aliased Font, SD card access and RTC usage on STM32F746NG-DISCO board
Dependencies: BSP_DISCO_F746NG_patch_fixed LCD_DISCO_F746NG TS_DISCO_F746NG FATFileSystem TinyJpgDec_interwork mbed-src
FontX/FontX.h
- Committer:
- the_sz
- Date:
- 2016-01-31
- Revision:
- 13:811a5c5b3fd6
- Child:
- 14:2044ad5cd3fe
File content as of revision 13:811a5c5b3fd6:
#ifndef __FontX_h #define __FontX_h #include "mbed.h" #define uint_8 unsigned char #define int8 char #define int16 short typedef struct { unsigned int8 Charwidth; unsigned int8 Charheight; unsigned int16 Offset; } FONT_CHAR_INFO; typedef struct { char StartCharacter; char EndCharacter; const FONT_CHAR_INFO *Descriptors; const unsigned int8 *Bitmaps; } FONT_INFO; #include "Candara18pt.h" #include "Segoe18pt.h" typedef enum { ALIGN_CENTER, ALIGN_RIGHT, ALIGN_LEFT } FONTX_ALIGNMENT_ENUM; uint32_t FontX_GetLength(char *Text,const FONT_INFO *pFont); uint32_t FontX_GetHeight(const FONT_INFO *pFont); void FontX_DisplayStringAt(uint16_t Xpos,uint16_t Ypos,uint16_t width,char *Text,FONTX_ALIGNMENT_ENUM Alignment,const FONT_INFO *pFont,uint32_t colorText,uint32_t colorBack); uint32_t FontX_DisplayChar(uint16_t Xpos,uint16_t Ypos,char Ascii,const FONT_INFO *pFont,uint32_t colorText,uint32_t colorBack); #endif