Path: blob/master/bdk/libs/lvgl/lv_fonts/hekate_symbol_120.c
1476 views
/*1* Copyright (c) 2019 CTCaer2*3* This program is free software; you can redistribute it and/or modify it4* under the terms and conditions of the GNU General Public License,5* version 2, as published by the Free Software Foundation.6*7* This program is distributed in the hope it will be useful, but WITHOUT8* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or9* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for10* more details.11*12* You should have received a copy of the GNU General Public License13* along with this program. If not, see <http://www.gnu.org/licenses/>.14*/1516#include "../lv_misc/lv_font.h"1718#include <memory_map.h>1920#if USE_HEKATE_SYMBOL_120 != 0 /*Can be enabled in lv_conf.h*/2122/***********************************************************************************23* hekate-symbols-huge.ttf 120 px Font in U+f002 () .. U+f007 () range with all bpp24* Sparse font with only these characters: 25***********************************************************************************/2627/*Store the glyph descriptions*/28static const lv_font_glyph_dsc_t hekate_symbol_120_glyph_dsc[] =29{30#if USE_HEKATE_SYMBOL_120 == 831{.w_px = 103, .glyph_index = 0}, /*Unicode: U+f002 ()*/32{.w_px = 103, .glyph_index = 12360}, /*Unicode: U+f003 ()*/33{.w_px = 103, .glyph_index = 24720}, /*Unicode: U+f005 ()*/34{.w_px = 103, .glyph_index = 37080}, /*Unicode: U+f007 ()*/3536#endif37};3839lv_font_t hekate_symbol_120 =40{41.unicode_first = LV_SYMBOL_GLYPH_FIRST, /*First Unicode letter in this font*/42.unicode_last = LV_SYMBOL_GLYPH_LAST, /*Last Unicode letter in this font*/43.h_px = 120, /*Font height in pixels*/44.glyph_bitmap = (const uint8_t *)(NYX_RES_ADDR + 0x36E00), /*Bitmap of glyphs*/45.glyph_dsc = hekate_symbol_120_glyph_dsc, /*Description of glyphs*/46.glyph_cnt = 4, /*Number of glyphs in the font*/47.unicode_list = NULL, /*List of unicode characters*/48.get_bitmap = lv_font_get_bitmap_continuous, /*Function pointer to get glyph's bitmap*/49.get_width = lv_font_get_width_continuous, /*Function pointer to get glyph's width*/50#if USE_HEKATE_SYMBOL_120 == 851.bpp = 8, /*Bit per pixel*/52#endif53.monospace = 0, /*Fix width (0: if not used)*/54.next_page = NULL, /*Pointer to a font extension*/55};5657#endif /*USE_HEKATE_SYMBOL_100*/585960