EPD Display
1.0.0
Library and application for EPD smart displays
lib
EPD
src
fonts.h
Go to the documentation of this file.
1
38
/* Define to prevent recursive inclusion -------------------------------------*/
39
#ifndef __FONTS_H
40
#define __FONTS_H
41
42
43
/* Max size of bitmap will based on a font24 (17x24) */
44
#define MAX_HEIGHT_FONT 41
45
#define MAX_WIDTH_FONT 32
46
#define OFFSET_BITMAP 54
47
48
#ifdef __cplusplus
49
extern
"C"
{
50
#endif
51
52
/* Includes ------------------------------------------------------------------*/
53
#include <stdint.h>
54
// #include <avr/pgmspace.h>
55
//ASCII
56
typedef
struct
sFONT
57
{
58
const
uint8_t *
table
;
59
uint16_t
Width
;
60
uint16_t
Height
;
61
62
}
sFONT
;
63
64
//GB2312
65
typedef
struct
// 汉字字模数据结构
66
{
67
unsigned
char
index[3];
// 汉字内码索引
68
const
char
matrix[
MAX_HEIGHT_FONT
*
MAX_WIDTH_FONT
/8];
// 点阵码数据
69
}
CH_CN
;
70
71
typedef
struct
72
{
73
const
CH_CN
*
table
;
74
uint16_t
size
;
75
uint16_t
ASCII_Width
;
76
uint16_t
Width
;
77
uint16_t
Height
;
78
79
}
cFONT
;
80
81
extern
sFONT
Font24
;
82
extern
sFONT
Font20
;
83
extern
sFONT
Font16
;
84
extern
sFONT
Font12
;
85
extern
sFONT
Font8
;
86
87
extern
cFONT
Font12CN
;
88
extern
cFONT
Font24CN
;
89
// extern const unsigned char Font16_Table[];
90
91
#ifdef __cplusplus
92
}
93
#endif
94
95
#endif
/* __FONTS_H */
96
97
98
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Font16
sFONT Font16
Definition:
font16.cpp:1761
cFONT
Definition:
fonts.h:71
MAX_HEIGHT_FONT
#define MAX_HEIGHT_FONT
Definition:
fonts.h:44
Font8
sFONT Font8
Definition:
font8.cpp:1001
cFONT::Height
uint16_t Height
Definition:
fonts.h:77
CH_CN
Definition:
fonts.h:65
sFONT
Definition:
fonts.h:56
Font12
sFONT Font12
Definition:
font12.cpp:1381
cFONT::table
const CH_CN * table
Definition:
fonts.h:73
Font24
sFONT Font24
Definition:
font24.cpp:2520
cFONT::size
uint16_t size
Definition:
fonts.h:74
cFONT::Width
uint16_t Width
Definition:
fonts.h:76
sFONT
struct sFONT sFONT
sFONT::Height
uint16_t Height
Definition:
fonts.h:60
Font24CN
cFONT Font24CN
sFONT::table
const uint8_t * table
Definition:
fonts.h:58
cFONT::ASCII_Width
uint16_t ASCII_Width
Definition:
fonts.h:75
Font12CN
cFONT Font12CN
Font20
sFONT Font20
Definition:
font20.cpp:2141
sFONT::Width
uint16_t Width
Definition:
fonts.h:59
MAX_WIDTH_FONT
#define MAX_WIDTH_FONT
Definition:
fonts.h:45
Generated by
1.8.17