Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CTCaer
GitHub Repository: CTCaer/hekate
Path: blob/master/bdk/libs/lvgl/lv_fonts/hekate_symbol_120.c
1476 views
1
/*
2
* Copyright (c) 2019 CTCaer
3
*
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms and conditions of the GNU General Public License,
6
* version 2, as published by the Free Software Foundation.
7
*
8
* This program is distributed in the hope it will be useful, but WITHOUT
9
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
* more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*/
16
17
#include "../lv_misc/lv_font.h"
18
19
#include <memory_map.h>
20
21
#if USE_HEKATE_SYMBOL_120 != 0 /*Can be enabled in lv_conf.h*/
22
23
/***********************************************************************************
24
* hekate-symbols-huge.ttf 120 px Font in U+f002 () .. U+f007 () range with all bpp
25
* Sparse font with only these characters: 
26
***********************************************************************************/
27
28
/*Store the glyph descriptions*/
29
static const lv_font_glyph_dsc_t hekate_symbol_120_glyph_dsc[] =
30
{
31
#if USE_HEKATE_SYMBOL_120 == 8
32
{.w_px = 103, .glyph_index = 0}, /*Unicode: U+f002 ()*/
33
{.w_px = 103, .glyph_index = 12360}, /*Unicode: U+f003 ()*/
34
{.w_px = 103, .glyph_index = 24720}, /*Unicode: U+f005 ()*/
35
{.w_px = 103, .glyph_index = 37080}, /*Unicode: U+f007 ()*/
36
37
#endif
38
};
39
40
lv_font_t hekate_symbol_120 =
41
{
42
.unicode_first = LV_SYMBOL_GLYPH_FIRST, /*First Unicode letter in this font*/
43
.unicode_last = LV_SYMBOL_GLYPH_LAST, /*Last Unicode letter in this font*/
44
.h_px = 120, /*Font height in pixels*/
45
.glyph_bitmap = (const uint8_t *)(NYX_RES_ADDR + 0x36E00), /*Bitmap of glyphs*/
46
.glyph_dsc = hekate_symbol_120_glyph_dsc, /*Description of glyphs*/
47
.glyph_cnt = 4, /*Number of glyphs in the font*/
48
.unicode_list = NULL, /*List of unicode characters*/
49
.get_bitmap = lv_font_get_bitmap_continuous, /*Function pointer to get glyph's bitmap*/
50
.get_width = lv_font_get_width_continuous, /*Function pointer to get glyph's width*/
51
#if USE_HEKATE_SYMBOL_120 == 8
52
.bpp = 8, /*Bit per pixel*/
53
#endif
54
.monospace = 0, /*Fix width (0: if not used)*/
55
.next_page = NULL, /*Pointer to a font extension*/
56
};
57
58
#endif /*USE_HEKATE_SYMBOL_100*/
59
60