Path: blob/master/bdk/libs/lvgl/lv_fonts/hekate_symbol_30.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_30 != 0 /*Can be enabled in lv_conf.h*/2122/***********************************************************************************23* hekate-symbols.ttf 30 px Font in U+f000 () .. U+f2ee () 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_30_glyph_dsc[] =29{30#if USE_HEKATE_SYMBOL_30 == 431{.w_px = 7, .glyph_index = 0}, /*Unicode: U+f001 ()*/32{.w_px = 25, .glyph_index = 120}, /*Unicode: U+f008 ()*/33{.w_px = 27, .glyph_index = 510}, /*Unicode: U+f00b ()*/34{.w_px = 31, .glyph_index = 930}, /*Unicode: U+f00c ()*/35{.w_px = 22, .glyph_index = 1410}, /*Unicode: U+f00d ()*/36{.w_px = 25, .glyph_index = 1740}, /*Unicode: U+f011 ()*/37{.w_px = 25, .glyph_index = 2130}, /*Unicode: U+f013 ()*/38{.w_px = 23, .glyph_index = 2520}, /*Unicode: U+f014 ()*/39{.w_px = 34, .glyph_index = 2880}, /*Unicode: U+f015 ()*/40{.w_px = 25, .glyph_index = 3390}, /*Unicode: U+f019 ()*/41{.w_px = 32, .glyph_index = 3780}, /*Unicode: U+f01c ()*/42{.w_px = 25, .glyph_index = 4260}, /*Unicode: U+f021 ()*/43{.w_px = 25, .glyph_index = 4650}, /*Unicode: U+f026 ()*/44{.w_px = 25, .glyph_index = 5040}, /*Unicode: U+f027 ()*/45{.w_px = 20, .glyph_index = 5430}, /*Unicode: U+f028 ()*/46{.w_px = 20, .glyph_index = 5730}, /*Unicode: U+f03e ()*/47{.w_px = 25, .glyph_index = 6030}, /*Unicode: U+f040 ()*/48{.w_px = 20, .glyph_index = 6420}, /*Unicode: U+f048 ()*/49{.w_px = 20, .glyph_index = 6720}, /*Unicode: U+f04b ()*/50{.w_px = 20, .glyph_index = 7020}, /*Unicode: U+f04c ()*/51{.w_px = 13, .glyph_index = 7320}, /*Unicode: U+f04d ()*/52{.w_px = 32, .glyph_index = 7530}, /*Unicode: U+f051 ()*/53{.w_px = 30, .glyph_index = 8010}, /*Unicode: U+f052 ()*/54{.w_px = 16, .glyph_index = 8460}, /*Unicode: U+f053 ()*/55{.w_px = 16, .glyph_index = 8700}, /*Unicode: U+f054 ()*/56{.w_px = 25, .glyph_index = 8940}, /*Unicode: U+f067 ()*/57{.w_px = 25, .glyph_index = 9330}, /*Unicode: U+f068 ()*/58{.w_px = 27, .glyph_index = 9720}, /*Unicode: U+f071 ()*/59{.w_px = 29, .glyph_index = 10140}, /*Unicode: U+f074 ()*/60{.w_px = 26, .glyph_index = 10590}, /*Unicode: U+f077 ()*/61{.w_px = 26, .glyph_index = 10980}, /*Unicode: U+f078 ()*/62{.w_px = 25, .glyph_index = 11370}, /*Unicode: U+f079 ()*/63{.w_px = 29, .glyph_index = 11760}, /*Unicode: U+f07b ()*/64{.w_px = 25, .glyph_index = 12210}, /*Unicode: U+f093 ()*/65{.w_px = 37, .glyph_index = 12600}, /*Unicode: U+f095 ()*/66{.w_px = 25, .glyph_index = 13170}, /*Unicode: U+f0c4 ()*/67{.w_px = 23, .glyph_index = 13560}, /*Unicode: U+f0c5 ()*/68{.w_px = 24, .glyph_index = 13920}, /*Unicode: U+f0c7 ()*/69{.w_px = 13, .glyph_index = 14280}, /*Unicode: U+f0e7 ()*/70{.w_px = 18, .glyph_index = 14490}, /*Unicode: U+f0f3 ()*/71{.w_px = 33, .glyph_index = 14760}, /*Unicode: U+f11c ()*/72{.w_px = 25, .glyph_index = 15270}, /*Unicode: U+f124 ()*/73{.w_px = 20, .glyph_index = 15660}, /*Unicode: U+f15b ()*/74{.w_px = 29, .glyph_index = 15960}, /*Unicode: U+f1eb ()*/75{.w_px = 38, .glyph_index = 16410}, /*Unicode: U+f240 ()*/76{.w_px = 38, .glyph_index = 16980}, /*Unicode: U+f241 ()*/77{.w_px = 38, .glyph_index = 17550}, /*Unicode: U+f242 ()*/78{.w_px = 38, .glyph_index = 18120}, /*Unicode: U+f243 ()*/79{.w_px = 38, .glyph_index = 18690}, /*Unicode: U+f244 ()*/80{.w_px = 29, .glyph_index = 19260}, /*Unicode: U+f293 ()*/8182#elif USE_HEKATE_SYMBOL_30 == 883{.w_px = 7, .glyph_index = 0}, /*Unicode: U+f001 ()*/84{.w_px = 25, .glyph_index = 210}, /*Unicode: U+f008 ()*/85{.w_px = 27, .glyph_index = 960}, /*Unicode: U+f00b ()*/86{.w_px = 31, .glyph_index = 1770}, /*Unicode: U+f00c ()*/87{.w_px = 22, .glyph_index = 2700}, /*Unicode: U+f00d ()*/88{.w_px = 25, .glyph_index = 3360}, /*Unicode: U+f011 ()*/89{.w_px = 25, .glyph_index = 4110}, /*Unicode: U+f013 ()*/90{.w_px = 23, .glyph_index = 4860}, /*Unicode: U+f014 ()*/91{.w_px = 34, .glyph_index = 5550}, /*Unicode: U+f015 ()*/92{.w_px = 25, .glyph_index = 6570}, /*Unicode: U+f019 ()*/93{.w_px = 32, .glyph_index = 7320}, /*Unicode: U+f01c ()*/94{.w_px = 25, .glyph_index = 8280}, /*Unicode: U+f021 ()*/95{.w_px = 25, .glyph_index = 9030}, /*Unicode: U+f026 ()*/96{.w_px = 25, .glyph_index = 9780}, /*Unicode: U+f027 ()*/97{.w_px = 20, .glyph_index = 10530}, /*Unicode: U+f028 ()*/98{.w_px = 20, .glyph_index = 11130}, /*Unicode: U+f03e ()*/99{.w_px = 25, .glyph_index = 11730}, /*Unicode: U+f040 ()*/100{.w_px = 20, .glyph_index = 12480}, /*Unicode: U+f048 ()*/101{.w_px = 20, .glyph_index = 13080}, /*Unicode: U+f04b ()*/102{.w_px = 20, .glyph_index = 13680}, /*Unicode: U+f04c ()*/103{.w_px = 13, .glyph_index = 14280}, /*Unicode: U+f04d ()*/104{.w_px = 32, .glyph_index = 14670}, /*Unicode: U+f051 ()*/105{.w_px = 30, .glyph_index = 15630}, /*Unicode: U+f052 ()*/106{.w_px = 16, .glyph_index = 16530}, /*Unicode: U+f053 ()*/107{.w_px = 16, .glyph_index = 17010}, /*Unicode: U+f054 ()*/108{.w_px = 25, .glyph_index = 17490}, /*Unicode: U+f067 ()*/109{.w_px = 25, .glyph_index = 18240}, /*Unicode: U+f068 ()*/110{.w_px = 27, .glyph_index = 18990}, /*Unicode: U+f071 ()*/111{.w_px = 29, .glyph_index = 19800}, /*Unicode: U+f074 ()*/112{.w_px = 26, .glyph_index = 20670}, /*Unicode: U+f077 ()*/113{.w_px = 26, .glyph_index = 21450}, /*Unicode: U+f078 ()*/114{.w_px = 25, .glyph_index = 22230}, /*Unicode: U+f079 ()*/115{.w_px = 29, .glyph_index = 22980}, /*Unicode: U+f07b ()*/116{.w_px = 25, .glyph_index = 23850}, /*Unicode: U+f093 ()*/117{.w_px = 37, .glyph_index = 24600}, /*Unicode: U+f095 ()*/118{.w_px = 25, .glyph_index = 25710}, /*Unicode: U+f0c4 ()*/119{.w_px = 23, .glyph_index = 26460}, /*Unicode: U+f0c5 ()*/120{.w_px = 24, .glyph_index = 27150}, /*Unicode: U+f0c7 ()*/121{.w_px = 13, .glyph_index = 27870}, /*Unicode: U+f0e7 ()*/122{.w_px = 18, .glyph_index = 28260}, /*Unicode: U+f0f3 ()*/123{.w_px = 33, .glyph_index = 28800}, /*Unicode: U+f11c ()*/124{.w_px = 25, .glyph_index = 29790}, /*Unicode: U+f124 ()*/125{.w_px = 20, .glyph_index = 30540}, /*Unicode: U+f15b ()*/126{.w_px = 29, .glyph_index = 31140}, /*Unicode: U+f1eb ()*/127{.w_px = 38, .glyph_index = 32010}, /*Unicode: U+f240 ()*/128{.w_px = 38, .glyph_index = 33150}, /*Unicode: U+f241 ()*/129{.w_px = 38, .glyph_index = 34290}, /*Unicode: U+f242 ()*/130{.w_px = 38, .glyph_index = 35430}, /*Unicode: U+f243 ()*/131{.w_px = 38, .glyph_index = 36570}, /*Unicode: U+f244 ()*/132{.w_px = 29, .glyph_index = 37710}, /*Unicode: U+f293 ()*/133134#endif135};136137lv_font_t hekate_symbol_30 =138{139.unicode_first = LV_SYMBOL_GLYPH_FIRST, /*First Unicode letter in this font*/140.unicode_last = LV_SYMBOL_GLYPH_LAST, /*Last Unicode letter in this font*/141.h_px = 30, /*Font height in pixels*/142//.glyph_bitmap = hekate_symbol_30_glyph_bitmap, /*Bitmap of glyphs*/143.glyph_bitmap = (const uint8_t *)(NYX_RES_ADDR + 0x14200),144.glyph_dsc = hekate_symbol_30_glyph_dsc, /*Description of glyphs*/145.glyph_cnt = 50, /*Number of glyphs in the font*/146.unicode_list = NULL, /*List of unicode characters*/147.get_bitmap = lv_font_get_bitmap_continuous, /*Function pointer to get glyph's bitmap*/148.get_width = lv_font_get_width_continuous, /*Function pointer to get glyph's width*/149#if USE_HEKATE_SYMBOL_30 == 4150.bpp = 4, /*Bit per pixel*/151#elif USE_HEKATE_SYMBOL_30 == 8152.bpp = 8, /*Bit per pixel*/153#endif154.monospace = 0, /*Fix width (0: if not used)*/155.next_page = NULL, /*Pointer to a font extension*/156};157158#endif /*USE_HEKATE_SYMBOL_30*/159160161