adding custom fonts and editor mode with tab
This commit is contained in:
107
Pico_ePaper_Code/c/lib/Fonts/acme_5_outlines_font.h
Normal file
107
Pico_ePaper_Code/c/lib/Fonts/acme_5_outlines_font.h
Normal file
@@ -0,0 +1,107 @@
|
||||
#include "fonts.h"
|
||||
|
||||
const uint8_t FontAcme_Table[] = {
|
||||
0x00,0x00,0x00,0x00,0x00,0x00, //
|
||||
0x7f,0x51,0x7f,0x00,0x00,0x00, // !
|
||||
0x0f,0x09,0x0f,0x09,0x0f,0x00, // "
|
||||
0x3e,0x6b,0x41,0x6b,0x41,0x6b, // #
|
||||
0x7f,0xd1,0x94,0xc5,0x7f,0x00, // $
|
||||
0x77,0x4d,0x77,0x59,0x77,0x00, // %
|
||||
0x7f,0x49,0x55,0x49,0x6f,0x54, // &
|
||||
0x0f,0x09,0x0f,0x00,0x00,0x00, // '
|
||||
0x7f,0xc1,0xbe,0xe3,0x00,0x00, // (
|
||||
0xe3,0xbe,0xc1,0x7f,0x00,0x00, // )
|
||||
0x3e,0x2a,0x77,0x41,0x77,0x2a, // *
|
||||
0x1c,0x14,0x77,0x41,0x77,0x14, // +
|
||||
0xe0,0xb0,0xd0,0x70,0x00,0x00, // ,
|
||||
0x1c,0x14,0x14,0x14,0x1c,0x00, // -
|
||||
0x70,0x50,0x70,0x00,0x00,0x00, // .
|
||||
0x78,0x4c,0x77,0x19,0x0f,0x00, // /
|
||||
0x7f,0x41,0x5d,0x41,0x7f,0x00, // 0
|
||||
0x7f,0x41,0x7f,0x00,0x00,0x00, // 1
|
||||
0x7f,0x45,0x55,0x51,0x7f,0x00, // 2
|
||||
0x7f,0x55,0x55,0x41,0x7f,0x00, // 3
|
||||
0x1f,0x11,0x77,0x41,0x7f,0x00, // 4
|
||||
0x7f,0x51,0x55,0x45,0x7f,0x00, // 5
|
||||
0x7f,0x41,0x55,0x45,0x7f,0x00, // 6
|
||||
0x07,0x7d,0x45,0x79,0x0f,0x00, // 7
|
||||
0x7f,0x49,0x55,0x49,0x7f,0x00, // 8
|
||||
0x7f,0x51,0x55,0x41,0x7f,0x00, // 9
|
||||
0x3e,0x2a,0x3e,0x00,0x00,0x00, // :
|
||||
0xe0,0xbe,0xda,0x7e,0x00,0x00, // ;
|
||||
0x1c,0x36,0x6b,0x5d,0x77,0x00, // <
|
||||
0x3e,0x2a,0x2a,0x2a,0x2a,0x3e, // =
|
||||
0x77,0x5d,0x6b,0x36,0x1c,0x00, // >
|
||||
0x07,0x7d,0x55,0x71,0x1f,0x00, // ?
|
||||
0x7f,0x41,0x5d,0x55,0x51,0x7f, // @
|
||||
0x7f,0x41,0x75,0x41,0x7f,0x00, // A
|
||||
0x7f,0x41,0x55,0x41,0x7f,0x00, // B
|
||||
0x7f,0x41,0x5d,0x55,0x77,0x00, // C
|
||||
0x7f,0x41,0x5d,0x63,0x3e,0x00, // D
|
||||
0x7f,0x41,0x55,0x55,0x7f,0x00, // E
|
||||
0x7f,0x41,0x75,0x15,0x1f,0x00, // F
|
||||
0x7f,0x41,0x5d,0x45,0x7f,0x00, // G
|
||||
0x7f,0x41,0x77,0x41,0x7f,0x00, // H
|
||||
0x7f,0x41,0x7f,0x00,0x00,0x00, // I
|
||||
0x78,0x48,0x5f,0x41,0x7f,0x00, // J
|
||||
0x7f,0x41,0x77,0x49,0x7f,0x00, // K
|
||||
0x7f,0x41,0x5f,0x50,0x70,0x00, // L
|
||||
0x7f,0x41,0x3b,0x3b,0x41,0x7f, // M
|
||||
0x7f,0x41,0x3b,0x76,0x41,0x7f, // N
|
||||
0x7f,0x41,0x5d,0x41,0x7f,0x00, // O
|
||||
0x7f,0x41,0x75,0x11,0x1f,0x00, // P
|
||||
0x7f,0x41,0x1d,0x41,0x7f,0x00, // Q
|
||||
0x7f,0x41,0x6d,0x51,0x6f,0x00, // R
|
||||
0x7f,0x51,0x55,0x45,0x7f,0x00, // S
|
||||
0x07,0x7d,0x41,0x7d,0x07,0x00, // T
|
||||
0x7f,0x41,0x5f,0x41,0x7f,0x00, // U
|
||||
0x3f,0x61,0x5f,0x61,0x3f,0x00, // V
|
||||
0x7f,0x41,0x6e,0x6e,0x41,0x7f, // W
|
||||
0x7f,0x49,0x77,0x49,0x7f,0x00, // X
|
||||
0x1f,0x71,0x47,0x71,0x1f,0x00, // Y
|
||||
0x7b,0x4d,0x55,0x59,0x6f,0x00, // Z
|
||||
0xff,0x80,0xbe,0xe3,0x00,0x00, // [
|
||||
0x0f,0x19,0x77,0x4c,0x78,0x00, // "\"
|
||||
0xe3,0xbe,0x80,0xff,0x00,0x00, // ]
|
||||
0x0e,0x0b,0x0d,0x0b,0x0e,0x00, // ^
|
||||
0xe0,0xa0,0xa0,0xa0,0xa0,0xe0, // _
|
||||
0x07,0x0d,0x0b,0x0e,0x00,0x00, // `
|
||||
0x7f,0x41,0x75,0x41,0x7f,0x00, // a
|
||||
0x7f,0x41,0x55,0x41,0x7f,0x00, // b
|
||||
0x7f,0x41,0x5d,0x55,0x77,0x00, // c
|
||||
0x7f,0x41,0x5d,0x63,0x3e,0x00, // d
|
||||
0x7f,0x41,0x55,0x55,0x7f,0x00, // e
|
||||
0x7f,0x41,0x75,0x15,0x1f,0x00, // f
|
||||
0x7f,0x41,0x5d,0x45,0x7f,0x00, // g
|
||||
0x7f,0x41,0x77,0x41,0x7f,0x00, // h
|
||||
0x7f,0x41,0x7f,0x00,0x00,0x00, // i
|
||||
0x78,0x48,0x5f,0x41,0x7f,0x00, // j
|
||||
0x7f,0x41,0x77,0x49,0x7f,0x00, // k
|
||||
0x7f,0x41,0x5f,0x50,0x70,0x00, // l
|
||||
0x7f,0x41,0x3b,0x3b,0x41,0x7f, // m
|
||||
0x7f,0x41,0x3b,0x76,0x41,0x7f, // n
|
||||
0x7f,0x41,0x5d,0x41,0x7f,0x00, // o
|
||||
0x7f,0x41,0x75,0x11,0x1f,0x00, // p
|
||||
0x7f,0x41,0x1d,0x41,0x7f,0x00, // q
|
||||
0x7f,0x41,0x6d,0x51,0x6f,0x00, // r
|
||||
0x7f,0x51,0x55,0x45,0x7f,0x00, // s
|
||||
0x07,0x7d,0x41,0x7d,0x07,0x00, // t
|
||||
0x7f,0x41,0x5f,0x41,0x7f,0x00, // u
|
||||
0x3f,0x61,0x5f,0x61,0x3f,0x00, // v
|
||||
0x7f,0x41,0x6e,0x6e,0x41,0x7f, // w
|
||||
0x7f,0x49,0x77,0x49,0x7f,0x00, // x
|
||||
0x1f,0x71,0x47,0x71,0x1f,0x00, // y
|
||||
0x7b,0x4d,0x55,0x59,0x6f,0x00, // z
|
||||
0x1c,0xf7,0x88,0xbe,0xe3,0x00, //
|
||||
0xff,0x80,0xff,0x00,0x00,0x00, // |
|
||||
0xe3,0xbe,0x88,0xf7,0x1c,0x00, //
|
||||
0x0f,0x09,0x0d,0x09,0x0b,0x09, // ~
|
||||
0x00,0x00,0x00,0x00,0x00,0x00
|
||||
};
|
||||
|
||||
|
||||
sFONT Acme_5 = {
|
||||
FontAcme_Table,
|
||||
8, /* Width */
|
||||
6, /* Height */
|
||||
};
|
||||
@@ -39,7 +39,7 @@
|
||||
#ifndef __FONTS_H
|
||||
#define __FONTS_H
|
||||
|
||||
/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ź<EFBFBD>24 (32x41) */
|
||||
/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><CEA2><EFBFBD>ź<EFBFBD>24 (32x41) */
|
||||
#define MAX_HEIGHT_FONT 41
|
||||
#define MAX_WIDTH_FONT 32
|
||||
#define OFFSET_BITMAP
|
||||
@@ -61,10 +61,10 @@ typedef struct _tFont
|
||||
|
||||
|
||||
//GB2312
|
||||
typedef struct // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3><EFBFBD>ݽṹ
|
||||
typedef struct // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3><EFBFBD>ݽṹ
|
||||
{
|
||||
const char index[2]; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
const char matrix[MAX_HEIGHT_FONT*MAX_WIDTH_FONT/8+2]; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
const char index[2]; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
const char matrix[MAX_HEIGHT_FONT*MAX_WIDTH_FONT/8+2]; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
}CH_CN;
|
||||
|
||||
|
||||
@@ -83,6 +83,7 @@ extern sFONT Font20;
|
||||
extern sFONT Font16;
|
||||
extern sFONT Font12;
|
||||
extern sFONT Font8;
|
||||
extern sFONT Acme_5;
|
||||
|
||||
extern cFONT Font12CN;
|
||||
extern cFONT Font24CN;
|
||||
|
||||
Reference in New Issue
Block a user