/** ****************************************************************************** * @file fonts.h * @author MCD Application Team * @version V1.0.0 * @date 18-February-2014 * @brief Header for fonts.c file ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __FONTS_H #define __FONTS_H #define MAX_HEIGHT_FONT 41 #define MAX_WIDTH_FONT 32 #define OFFSET_BITMAP #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include //ASCII typedef struct _tFont { const uint8_t *table; uint16_t Width; uint16_t Height; } sFONT; typedef struct { unsigned char index[3]; const char matrix[MAX_HEIGHT_FONT*MAX_WIDTH_FONT/8]; } CH_CN; typedef struct { const CH_CN *table; uint16_t size; uint16_t ASCII_Width; uint16_t Width; uint16_t Height; } cFONT; extern sFONT Font24; extern sFONT Font20; extern sFONT Font16; extern sFONT Font12; extern sFONT Font8; extern cFONT Font12CN; extern cFONT Font24CN; #ifdef __cplusplus } #endif #endif /* __FONTS_H */