325 lines
12 KiB
C
325 lines
12 KiB
C
|
/*******************************************************************************
|
||
|
* Size: 48 px
|
||
|
* Bpp: 1
|
||
|
* Opts:
|
||
|
******************************************************************************/
|
||
|
|
||
|
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
|
||
|
#include "lvgl.h"
|
||
|
#else
|
||
|
#include "lvgl/lvgl.h"
|
||
|
#endif
|
||
|
|
||
|
#ifndef LV_FONT_SYS_48
|
||
|
#define LV_FONT_SYS_48 1
|
||
|
#endif
|
||
|
|
||
|
#if LV_FONT_SYS_48
|
||
|
|
||
|
/*-----------------
|
||
|
* BITMAPS
|
||
|
*----------------*/
|
||
|
|
||
|
/*Store the image of the glyphs*/
|
||
|
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
|
||
|
/* U+E902 "" */
|
||
|
0x0, 0x1, 0xff, 0x80, 0x0, 0x0, 0x1, 0xff,
|
||
|
0x80, 0x0, 0x0, 0x1, 0xff, 0x80, 0x0, 0x0,
|
||
|
0x1, 0xff, 0x80, 0x0, 0x0, 0x1, 0xff, 0x80,
|
||
|
0x0, 0x0, 0x3, 0xff, 0xc0, 0x0, 0x6, 0x7,
|
||
|
0xff, 0xe0, 0x60, 0xf, 0x8f, 0xff, 0xf1, 0xf0,
|
||
|
0xf, 0xff, 0xff, 0xff, 0xf0, 0x1f, 0xff, 0xff,
|
||
|
0xff, 0xf8, 0x3f, 0xff, 0xff, 0xff, 0xfc, 0x3f,
|
||
|
0xff, 0xff, 0xff, 0xfc, 0x7f, 0xff, 0xff, 0xff,
|
||
|
0xfe, 0x7f, 0xff, 0x81, 0xff, 0xfe, 0x7f, 0xff,
|
||
|
0x0, 0xff, 0xfe, 0x3f, 0xfe, 0x0, 0x7f, 0xfc,
|
||
|
0x1f, 0xfc, 0x0, 0x3f, 0xf8, 0xf, 0xf8, 0x0,
|
||
|
0x1f, 0xf0, 0x7, 0xf8, 0x0, 0x1f, 0xe0, 0x7,
|
||
|
0xf8, 0x0, 0x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0x0, 0xff, 0xff, 0xff, 0x0, 0x0,
|
||
|
0xff, 0xff, 0xff, 0x0, 0x0, 0xff, 0xff, 0xff,
|
||
|
0x0, 0x0, 0xff, 0xff, 0xff, 0x0, 0x0, 0xff,
|
||
|
0xff, 0xff, 0x0, 0x0, 0xff, 0xff, 0xff, 0x0,
|
||
|
0x0, 0xff, 0xff, 0xff, 0x0, 0x0, 0xff, 0xff,
|
||
|
0xff, 0x0, 0x0, 0xff, 0xff, 0xff, 0x0, 0x1,
|
||
|
0xff, 0xff, 0xff, 0x80, 0x3, 0xff, 0xff, 0xff,
|
||
|
0xc0, 0x7, 0xff, 0xff, 0xff, 0xe0, 0xf, 0xff,
|
||
|
0xff, 0xff, 0xf0, 0xf, 0xff, 0xff, 0xff, 0xf0,
|
||
|
0xf, 0xff, 0xff, 0xff, 0xf0, 0x0, 0x0, 0x0,
|
||
|
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
||
|
0x0, 0xff, 0x0, 0x0, 0x0, 0x0, 0xff, 0x0,
|
||
|
0x0, 0x0, 0x0, 0x7e, 0x0, 0x0, 0x0, 0x0,
|
||
|
0x3c, 0x0, 0x0
|
||
|
};
|
||
|
|
||
|
|
||
|
/*---------------------
|
||
|
* GLYPH DESCRIPTION
|
||
|
*--------------------*/
|
||
|
|
||
|
static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
|
||
|
{.bitmap_index = 0, .adv_w = 0, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0} /* id = 0 reserved */,
|
||
|
{.bitmap_index = 0, .adv_w = 768, .box_w = 40, .box_h = 40, .ofs_x = 4, .ofs_y = 0},
|
||
|
{.bitmap_index = 200, .adv_w = 768, .box_w = 46, .box_h = 46, .ofs_x = 1, .ofs_y = -3},
|
||
|
{.bitmap_index = 465, .adv_w = 768, .box_w = 46, .box_h = 46, .ofs_x = 1, .ofs_y = -3},
|
||
|
{.bitmap_index = 730, .adv_w = 768, .box_w = 46, .box_h = 46, .ofs_x = 1, .ofs_y = -3},
|
||
|
{.bitmap_index = 995, .adv_w = 768, .box_w = 34, .box_h = 40, .ofs_x = 7, .ofs_y = 0},
|
||
|
{.bitmap_index = 1165, .adv_w = 768, .box_w = 34, .box_h = 39, .ofs_x = 8, .ofs_y = 0},
|
||
|
{.bitmap_index = 1331, .adv_w = 768, .box_w = 40, .box_h = 39, .ofs_x = 4, .ofs_y = 0}
|
||
|
};
|
||
|
|
||
|
/*---------------------
|
||
|
* CHARACTER MAPPING
|
||
|
*--------------------*/
|
||
|
|
||
|
static const uint8_t glyph_id_ofs_list_0[] = {
|
||
|
0, 0, 1, 2, 3, 4, 0, 0,
|
||
|
0, 5, 6
|
||
|
};
|
||
|
|
||
|
/*Collect the unicode lists and glyph_id offsets*/
|
||
|
static const lv_font_fmt_txt_cmap_t cmaps[] =
|
||
|
{
|
||
|
{
|
||
|
.range_start = 59650, .range_length = 11, .glyph_id_start = 1,
|
||
|
.unicode_list = NULL, .glyph_id_ofs_list = glyph_id_ofs_list_0, .list_length = 11, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_FULL
|
||
|
}
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
/*--------------------
|
||
|
* ALL CUSTOM DATA
|
||
|
*--------------------*/
|
||
|
|
||
|
#if LV_VERSION_CHECK(8, 0, 0)
|
||
|
/*Store all the custom data of the font*/
|
||
|
static lv_font_fmt_txt_glyph_cache_t cache;
|
||
|
static const lv_font_fmt_txt_dsc_t font_dsc = {
|
||
|
#else
|
||
|
static lv_font_fmt_txt_dsc_t font_dsc = {
|
||
|
#endif
|
||
|
.glyph_bitmap = glyph_bitmap,
|
||
|
.glyph_dsc = glyph_dsc,
|
||
|
.cmaps = cmaps,
|
||
|
.kern_dsc = NULL,
|
||
|
.kern_scale = 0,
|
||
|
.cmap_num = 1,
|
||
|
.bpp = 1,
|
||
|
.kern_classes = 0,
|
||
|
.bitmap_format = 0,
|
||
|
#if LV_VERSION_CHECK(8, 0, 0)
|
||
|
.cache = &cache
|
||
|
#endif
|
||
|
};
|
||
|
|
||
|
|
||
|
/*-----------------
|
||
|
* PUBLIC FONT
|
||
|
*----------------*/
|
||
|
|
||
|
/*Initialize a public general font descriptor*/
|
||
|
#if LV_VERSION_CHECK(8, 0, 0)
|
||
|
const lv_font_t lv_font_sys_48 = {
|
||
|
#else
|
||
|
lv_font_t lv_font_sys_48 = {
|
||
|
#endif
|
||
|
.get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt, /*Function pointer to get glyph's data*/
|
||
|
.get_glyph_bitmap = lv_font_get_bitmap_fmt_txt, /*Function pointer to get glyph's bitmap*/
|
||
|
.line_height = 46, /*The maximum line height required by the font*/
|
||
|
.base_line = 3, /*Baseline measured from the bottom of the line*/
|
||
|
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
|
||
|
.subpx = LV_FONT_SUBPX_NONE,
|
||
|
#endif
|
||
|
#if LV_VERSION_CHECK(7, 4, 0)
|
||
|
.underline_position = 0,
|
||
|
.underline_thickness = 0,
|
||
|
#endif
|
||
|
.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
#endif /*#if LV_FONT_SYS_48*/
|
||
|
|