31 lines
588 B
C
31 lines
588 B
C
|
#ifndef __FONT_H
|
|||
|
#define __FONT_H
|
|||
|
|
|||
|
#include "stm32f10x.h"
|
|||
|
#include "./font/fonts.h"
|
|||
|
|
|||
|
|
|||
|
#define LINE(x) ((x) * (((sFONT *)LCD_GetFont())->Height))
|
|||
|
#define LINEY(x) ((x) * (((sFONT *)LCD_GetFont())->Width))
|
|||
|
|
|||
|
/** @defgroup FONTS_Exported_Types
|
|||
|
* @{
|
|||
|
*/
|
|||
|
typedef struct _tFont
|
|||
|
{
|
|||
|
const uint8_t *table;
|
|||
|
uint16_t Width;
|
|||
|
uint16_t Height;
|
|||
|
|
|||
|
} sFONT;
|
|||
|
|
|||
|
extern sFONT Font24x32;
|
|||
|
extern sFONT Font16x24;
|
|||
|
extern sFONT Font8x16;
|
|||
|
|
|||
|
//Ҫ֧<D2AA><D6A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫʵ<D2AA>ֱ<EFBFBD><D6B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲο<C9B2><CEBF><EFBFBD>Һ<EFBFBD><D2BA><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE>Ӣ<EFBFBD>ģ<EFBFBD><C4A3>ֿ<EFBFBD><D6BF><EFBFBD><EFBFBD>ⲿFLASH<53><48><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
#define GetGBKCode( ucBuffer, usChar )
|
|||
|
|
|||
|
|
|||
|
#endif /*end of __FONT_H */
|