render hollow circle, begin of rendering chars

This commit is contained in:
Emanuele Trabattoni
2021-06-12 17:32:45 +02:00
parent d910980ede
commit 487054ff76
11 changed files with 219 additions and 1627 deletions

View File

@@ -39,7 +39,7 @@
#ifndef __FONTS_H
#define __FONTS_H
/*最大字体微软雅黑24 (32x41) */
/*<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>΢<EFBFBD><EFBFBD><EFBFBD>ź<EFBFBD>24 (32x41) */
#define MAX_HEIGHT_FONT 41
#define MAX_WIDTH_FONT 32
#define OFFSET_BITMAP
@@ -62,31 +62,31 @@ typedef struct _tFont
//GB2312
typedef struct // 汉字字模数据结构
{
const char index[2]; // 汉字内码索引
const char matrix[MAX_HEIGHT_FONT*MAX_WIDTH_FONT/8+2]; // 点阵码数据
}CH_CN;
// typedef struct // <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><EFBFBD><EFBFBD>ݽṹ
// {
// const char index[2]; // <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
// const char matrix[MAX_HEIGHT_FONT*MAX_WIDTH_FONT/8+2]; // <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
// }CH_CN;
typedef struct
{
const CH_CN *table;
uint16_t size;
uint16_t ASCII_Width;
uint16_t Width;
uint16_t Height;
// typedef struct
// {
// const CH_CN *table;
// uint16_t size;
// uint16_t ASCII_Width;
// uint16_t Width;
// uint16_t Height;
}cFONT;
// }cFONT;
extern sFONT Font24;
extern sFONT Font20;
extern sFONT Font16;
extern sFONT Font12;
extern sFONT Font8;
// extern sFONT Font24;
// extern sFONT Font20;
// extern sFONT Font16;
// extern sFONT Font12;
// extern sFONT Font8;
extern cFONT Font12CN;
extern cFONT Font24CN;
// extern cFONT Font12CN;
// extern cFONT Font24CN;
#ifdef __cplusplus
}
#endif