Path: blob/master/bdk/libs/lvgl/lv_fonts/hekate_symbol_20.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_20 != 0 /*Can be enabled in lv_conf.h*/2122/***********************************************************************************23* hekate-symbols.ttf 20 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_20_glyph_dsc[] =29{30#if USE_HEKATE_SYMBOL_20 == 431{.w_px = 5, .glyph_index = 0}, /*Unicode: U+f001 ()*/32{.w_px = 16, .glyph_index = 60}, /*Unicode: U+f008 ()*/33{.w_px = 20, .glyph_index = 220}, /*Unicode: U+f00b ()*/34{.w_px = 22, .glyph_index = 420}, /*Unicode: U+f00c ()*/35{.w_px = 16, .glyph_index = 640}, /*Unicode: U+f00d ()*/36{.w_px = 18, .glyph_index = 800}, /*Unicode: U+f011 ()*/37{.w_px = 18, .glyph_index = 980}, /*Unicode: U+f013 ()*/38{.w_px = 16, .glyph_index = 1160}, /*Unicode: U+f014 ()*/39{.w_px = 23, .glyph_index = 1320}, /*Unicode: U+f015 ()*/40{.w_px = 18, .glyph_index = 1560}, /*Unicode: U+f019 ()*/41{.w_px = 23, .glyph_index = 1740}, /*Unicode: U+f01c ()*/42{.w_px = 18, .glyph_index = 1980}, /*Unicode: U+f021 ()*/43{.w_px = 18, .glyph_index = 2160}, /*Unicode: U+f026 ()*/44{.w_px = 18, .glyph_index = 2340}, /*Unicode: U+f027 ()*/45{.w_px = 13, .glyph_index = 2520}, /*Unicode: U+f028 ()*/46{.w_px = 13, .glyph_index = 2660}, /*Unicode: U+f03e ()*/47{.w_px = 16, .glyph_index = 2800}, /*Unicode: U+f040 ()*/48{.w_px = 13, .glyph_index = 2960}, /*Unicode: U+f048 ()*/49{.w_px = 13, .glyph_index = 3100}, /*Unicode: U+f04b ()*/50{.w_px = 13, .glyph_index = 3240}, /*Unicode: U+f04c ()*/51{.w_px = 9, .glyph_index = 3380}, /*Unicode: U+f04d ()*/52{.w_px = 23, .glyph_index = 3480}, /*Unicode: U+f051 ()*/53{.w_px = 21, .glyph_index = 3720}, /*Unicode: U+f052 ()*/54{.w_px = 11, .glyph_index = 3940}, /*Unicode: U+f053 ()*/55{.w_px = 11, .glyph_index = 4060}, /*Unicode: U+f054 ()*/56{.w_px = 18, .glyph_index = 4180}, /*Unicode: U+f067 ()*/57{.w_px = 18, .glyph_index = 4360}, /*Unicode: U+f068 ()*/58{.w_px = 20, .glyph_index = 4540}, /*Unicode: U+f071 ()*/59{.w_px = 20, .glyph_index = 4740}, /*Unicode: U+f074 ()*/60{.w_px = 18, .glyph_index = 4940}, /*Unicode: U+f077 ()*/61{.w_px = 18, .glyph_index = 5120}, /*Unicode: U+f078 ()*/62{.w_px = 18, .glyph_index = 5300}, /*Unicode: U+f079 ()*/63{.w_px = 20, .glyph_index = 5480}, /*Unicode: U+f07b ()*/64{.w_px = 18, .glyph_index = 5680}, /*Unicode: U+f093 ()*/65{.w_px = 25, .glyph_index = 5860}, /*Unicode: U+f095 ()*/66{.w_px = 18, .glyph_index = 6120}, /*Unicode: U+f0c4 ()*/67{.w_px = 16, .glyph_index = 6300}, /*Unicode: U+f0c5 ()*/68{.w_px = 17, .glyph_index = 6460}, /*Unicode: U+f0c7 ()*/69{.w_px = 8, .glyph_index = 6640}, /*Unicode: U+f0e7 ()*/70{.w_px = 12, .glyph_index = 6720}, /*Unicode: U+f0f3 ()*/71{.w_px = 23, .glyph_index = 6840}, /*Unicode: U+f11c ()*/72{.w_px = 18, .glyph_index = 7080}, /*Unicode: U+f124 ()*/73{.w_px = 13, .glyph_index = 7260}, /*Unicode: U+f15b ()*/74{.w_px = 20, .glyph_index = 7400}, /*Unicode: U+f1eb ()*/75{.w_px = 26, .glyph_index = 7600}, /*Unicode: U+f240 ()*/76{.w_px = 26, .glyph_index = 7860}, /*Unicode: U+f241 ()*/77{.w_px = 26, .glyph_index = 8120}, /*Unicode: U+f242 ()*/78{.w_px = 26, .glyph_index = 8380}, /*Unicode: U+f243 ()*/79{.w_px = 26, .glyph_index = 8640}, /*Unicode: U+f244 ()*/80{.w_px = 20, .glyph_index = 8900}, /*Unicode: U+f293 ()*/8182#elif USE_HEKATE_SYMBOL_20 == 883{.w_px = 5, .glyph_index = 0}, /*Unicode: U+f001 ()*/84{.w_px = 16, .glyph_index = 100}, /*Unicode: U+f008 ()*/85{.w_px = 20, .glyph_index = 420}, /*Unicode: U+f00b ()*/86{.w_px = 22, .glyph_index = 820}, /*Unicode: U+f00c ()*/87{.w_px = 16, .glyph_index = 1260}, /*Unicode: U+f00d ()*/88{.w_px = 18, .glyph_index = 1580}, /*Unicode: U+f011 ()*/89{.w_px = 18, .glyph_index = 1940}, /*Unicode: U+f013 ()*/90{.w_px = 16, .glyph_index = 2300}, /*Unicode: U+f014 ()*/91{.w_px = 23, .glyph_index = 2620}, /*Unicode: U+f015 ()*/92{.w_px = 18, .glyph_index = 3080}, /*Unicode: U+f019 ()*/93{.w_px = 23, .glyph_index = 3440}, /*Unicode: U+f01c ()*/94{.w_px = 18, .glyph_index = 3900}, /*Unicode: U+f021 ()*/95{.w_px = 18, .glyph_index = 4260}, /*Unicode: U+f026 ()*/96{.w_px = 18, .glyph_index = 4620}, /*Unicode: U+f027 ()*/97{.w_px = 13, .glyph_index = 4980}, /*Unicode: U+f028 ()*/98{.w_px = 13, .glyph_index = 5240}, /*Unicode: U+f03e ()*/99{.w_px = 16, .glyph_index = 5500}, /*Unicode: U+f040 ()*/100{.w_px = 13, .glyph_index = 5820}, /*Unicode: U+f048 ()*/101{.w_px = 13, .glyph_index = 6080}, /*Unicode: U+f04b ()*/102{.w_px = 13, .glyph_index = 6340}, /*Unicode: U+f04c ()*/103{.w_px = 9, .glyph_index = 6600}, /*Unicode: U+f04d ()*/104{.w_px = 23, .glyph_index = 6780}, /*Unicode: U+f051 ()*/105{.w_px = 21, .glyph_index = 7240}, /*Unicode: U+f052 ()*/106{.w_px = 11, .glyph_index = 7660}, /*Unicode: U+f053 ()*/107{.w_px = 11, .glyph_index = 7880}, /*Unicode: U+f054 ()*/108{.w_px = 18, .glyph_index = 8100}, /*Unicode: U+f067 ()*/109{.w_px = 18, .glyph_index = 8460}, /*Unicode: U+f068 ()*/110{.w_px = 20, .glyph_index = 8820}, /*Unicode: U+f071 ()*/111{.w_px = 20, .glyph_index = 9220}, /*Unicode: U+f074 ()*/112{.w_px = 18, .glyph_index = 9620}, /*Unicode: U+f077 ()*/113{.w_px = 18, .glyph_index = 9980}, /*Unicode: U+f078 ()*/114{.w_px = 18, .glyph_index = 10340}, /*Unicode: U+f079 ()*/115{.w_px = 20, .glyph_index = 10700}, /*Unicode: U+f07b ()*/116{.w_px = 18, .glyph_index = 11100}, /*Unicode: U+f093 ()*/117{.w_px = 25, .glyph_index = 11460}, /*Unicode: U+f095 ()*/118{.w_px = 18, .glyph_index = 11960}, /*Unicode: U+f0c4 ()*/119{.w_px = 16, .glyph_index = 12320}, /*Unicode: U+f0c5 ()*/120{.w_px = 17, .glyph_index = 12640}, /*Unicode: U+f0c7 ()*/121{.w_px = 8, .glyph_index = 12980}, /*Unicode: U+f0e7 ()*/122{.w_px = 12, .glyph_index = 13140}, /*Unicode: U+f0f3 ()*/123{.w_px = 23, .glyph_index = 13380}, /*Unicode: U+f11c ()*/124{.w_px = 18, .glyph_index = 13840}, /*Unicode: U+f124 ()*/125{.w_px = 13, .glyph_index = 14200}, /*Unicode: U+f15b ()*/126{.w_px = 20, .glyph_index = 14460}, /*Unicode: U+f1eb ()*/127{.w_px = 26, .glyph_index = 14860}, /*Unicode: U+f240 ()*/128{.w_px = 26, .glyph_index = 15380}, /*Unicode: U+f241 ()*/129{.w_px = 26, .glyph_index = 15900}, /*Unicode: U+f242 ()*/130{.w_px = 26, .glyph_index = 16420}, /*Unicode: U+f243 ()*/131{.w_px = 26, .glyph_index = 16940}, /*Unicode: U+f244 ()*/132{.w_px = 20, .glyph_index = 17460}, /*Unicode: U+f293 ()*/133134#endif135};136137lv_font_t hekate_symbol_20 =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 = 20, /*Font height in pixels*/142//.glyph_bitmap = hekate_symbol_20_glyph_bitmap, /*Bitmap of glyphs*/143.glyph_bitmap = (const uint8_t *)(NYX_RES_ADDR + 0xFC00),144.glyph_dsc = hekate_symbol_20_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_20 == 4150.bpp = 4, /*Bit per pixel*/151#elif USE_HEKATE_SYMBOL_20 == 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_20*/159160161