2021-08-10 15:02:33 +08:00
|
|
|
|
//<2F><>Ϸ<EFBFBD><CFB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE>
|
2021-08-04 10:46:24 +08:00
|
|
|
|
|
|
|
|
|
|
#ifndef __GE_FONT_H
|
|
|
|
|
|
#define __GE_FONT_H
|
|
|
|
|
|
|
2021-09-28 14:24:41 +08:00
|
|
|
|
#include "stdarg.h"
|
|
|
|
|
|
|
2021-08-04 10:46:24 +08:00
|
|
|
|
void GE_FontInit(void);
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************** <20><><EFBFBD>ƺ<EFBFBD><C6BA><EFBFBD> ****************************************/
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С
|
|
|
|
|
|
#define FONT_12 12
|
|
|
|
|
|
#define FONT_16 16
|
|
|
|
|
|
#define FONT_24 24
|
|
|
|
|
|
#define FONT_32 32
|
|
|
|
|
|
#define FONT_48 48
|
|
|
|
|
|
#define FONT_64 64
|
|
|
|
|
|
|
2021-08-10 15:02:33 +08:00
|
|
|
|
//<2F>߽<EFBFBD><DFBD><EFBFBD><EFBFBD><EFBFBD>
|
2021-08-04 10:46:24 +08:00
|
|
|
|
#define BORDER_MAX 0xffff
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
|
|
{
|
|
|
|
|
|
uint8_t font_size; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С
|
|
|
|
|
|
uint16_t font_color; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
uint16_t back_color; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
uint8_t is_transparent; //<2F>Ƿ<EFBFBD><EFBFBD><CDB8>
|
|
|
|
|
|
} _ge_font_print_set;
|
|
|
|
|
|
|
|
|
|
|
|
extern _ge_font_print_set ge_font_print_set;
|
|
|
|
|
|
|
2021-09-28 14:24:41 +08:00
|
|
|
|
uint8_t GE_Font_Print_Va(
|
|
|
|
|
|
int16_t x_start,
|
|
|
|
|
|
int16_t y_start,
|
|
|
|
|
|
uint16_t width,
|
|
|
|
|
|
uint16_t height,
|
|
|
|
|
|
uint8_t font_size,
|
|
|
|
|
|
uint16_t font_color,
|
|
|
|
|
|
uint16_t back_color,
|
|
|
|
|
|
uint8_t is_transparent,
|
|
|
|
|
|
uint8_t *format,
|
|
|
|
|
|
va_list arg);
|
|
|
|
|
|
|
2021-08-04 10:46:24 +08:00
|
|
|
|
uint8_t GE_Font_Print(
|
2021-09-28 14:24:41 +08:00
|
|
|
|
int16_t x_start,
|
|
|
|
|
|
int16_t y_start,
|
2021-08-04 10:46:24 +08:00
|
|
|
|
uint16_t width,
|
|
|
|
|
|
uint16_t height,
|
|
|
|
|
|
uint8_t font_size,
|
|
|
|
|
|
uint16_t font_color,
|
|
|
|
|
|
uint16_t back_color,
|
|
|
|
|
|
uint8_t is_transparent,
|
2021-09-28 14:24:41 +08:00
|
|
|
|
uint8_t *format,
|
|
|
|
|
|
...);
|
|
|
|
|
|
|
|
|
|
|
|
uint8_t GE_Font_Print_WithSet_Va(
|
|
|
|
|
|
int16_t x_start,
|
|
|
|
|
|
int16_t y_start,
|
|
|
|
|
|
uint16_t width,
|
|
|
|
|
|
uint16_t height,
|
|
|
|
|
|
uint8_t *format,
|
|
|
|
|
|
va_list arg);
|
2021-08-04 10:46:24 +08:00
|
|
|
|
|
2021-09-28 14:24:41 +08:00
|
|
|
|
uint8_t GE_Font_Print_WithSet(
|
|
|
|
|
|
int16_t x_start,
|
|
|
|
|
|
int16_t y_start,
|
|
|
|
|
|
uint16_t width,
|
|
|
|
|
|
uint16_t height,
|
|
|
|
|
|
uint8_t *format,
|
|
|
|
|
|
...);
|
2021-08-04 10:46:24 +08:00
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|