Transition to hekate bdk layout
This commit is contained in:
parent
4425e81085
commit
4ffd4ce7f0
317 changed files with 60891 additions and 1003 deletions
58
bdk/libs/lvgl/lv_fonts/hekate_symbol_120.c
Normal file
58
bdk/libs/lvgl/lv_fonts/hekate_symbol_120.c
Normal file
|
@ -0,0 +1,58 @@
|
|||
/*
|
||||
* Copyright (c) 2019 CTCaer
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "../lv_misc/lv_font.h"
|
||||
|
||||
#include <memory_map.h>
|
||||
|
||||
#if USE_HEKATE_SYMBOL_120 != 0 /*Can be enabled in lv_conf.h*/
|
||||
|
||||
/***********************************************************************************
|
||||
* hekate-symbols-huge.ttf 120 px Font in U+f002 () .. U+f007 () range with all bpp
|
||||
* Sparse font with only these characters:
|
||||
***********************************************************************************/
|
||||
|
||||
/*Store the glyph descriptions*/
|
||||
static const lv_font_glyph_dsc_t hekate_symbol_120_glyph_dsc[] =
|
||||
{
|
||||
#if USE_HEKATE_SYMBOL_120 == 8
|
||||
{.w_px = 103, .glyph_index = 0}, /*Unicode: U+f002 ()*/
|
||||
{.w_px = 103, .glyph_index = 12360}, /*Unicode: U+f003 ()*/
|
||||
{.w_px = 103, .glyph_index = 24720}, /*Unicode: U+f005 ()*/
|
||||
{.w_px = 103, .glyph_index = 37080}, /*Unicode: U+f007 ()*/
|
||||
|
||||
#endif
|
||||
};
|
||||
|
||||
lv_font_t hekate_symbol_120 =
|
||||
{
|
||||
.unicode_first = LV_SYMBOL_GLYPH_FIRST, /*First Unicode letter in this font*/
|
||||
.unicode_last = LV_SYMBOL_GLYPH_LAST, /*Last Unicode letter in this font*/
|
||||
.h_px = 120, /*Font height in pixels*/
|
||||
.glyph_bitmap = (const uint8_t *)(NYX_RES_ADDR + 0x36E00), /*Bitmap of glyphs*/
|
||||
.glyph_dsc = hekate_symbol_120_glyph_dsc, /*Description of glyphs*/
|
||||
.glyph_cnt = 4, /*Number of glyphs in the font*/
|
||||
.unicode_list = NULL, /*List of unicode characters*/
|
||||
.get_bitmap = lv_font_get_bitmap_continuous, /*Function pointer to get glyph's bitmap*/
|
||||
.get_width = lv_font_get_width_continuous, /*Function pointer to get glyph's width*/
|
||||
#if USE_HEKATE_SYMBOL_120 == 8
|
||||
.bpp = 8, /*Bit per pixel*/
|
||||
#endif
|
||||
.monospace = 0, /*Fix width (0: if not used)*/
|
||||
.next_page = NULL, /*Pointer to a font extension*/
|
||||
};
|
||||
|
||||
#endif /*USE_HEKATE_SYMBOL_100*/
|
159
bdk/libs/lvgl/lv_fonts/hekate_symbol_20.c
Normal file
159
bdk/libs/lvgl/lv_fonts/hekate_symbol_20.c
Normal file
|
@ -0,0 +1,159 @@
|
|||
/*
|
||||
* Copyright (c) 2019 CTCaer
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "../lv_misc/lv_font.h"
|
||||
|
||||
#include <memory_map.h>
|
||||
|
||||
#if USE_HEKATE_SYMBOL_20 != 0 /*Can be enabled in lv_conf.h*/
|
||||
|
||||
/***********************************************************************************
|
||||
* hekate-symbols.ttf 20 px Font in U+f000 () .. U+f2ee () range with all bpp
|
||||
* Sparse font with only these characters:
|
||||
***********************************************************************************/
|
||||
|
||||
/*Store the glyph descriptions*/
|
||||
static const lv_font_glyph_dsc_t hekate_symbol_20_glyph_dsc[] =
|
||||
{
|
||||
#if USE_HEKATE_SYMBOL_20 == 4
|
||||
{.w_px = 5, .glyph_index = 0}, /*Unicode: U+f001 ()*/
|
||||
{.w_px = 16, .glyph_index = 60}, /*Unicode: U+f008 ()*/
|
||||
{.w_px = 20, .glyph_index = 220}, /*Unicode: U+f00b ()*/
|
||||
{.w_px = 22, .glyph_index = 420}, /*Unicode: U+f00c ()*/
|
||||
{.w_px = 16, .glyph_index = 640}, /*Unicode: U+f00d ()*/
|
||||
{.w_px = 18, .glyph_index = 800}, /*Unicode: U+f011 ()*/
|
||||
{.w_px = 18, .glyph_index = 980}, /*Unicode: U+f013 ()*/
|
||||
{.w_px = 16, .glyph_index = 1160}, /*Unicode: U+f014 ()*/
|
||||
{.w_px = 23, .glyph_index = 1320}, /*Unicode: U+f015 ()*/
|
||||
{.w_px = 18, .glyph_index = 1560}, /*Unicode: U+f019 ()*/
|
||||
{.w_px = 23, .glyph_index = 1740}, /*Unicode: U+f01c ()*/
|
||||
{.w_px = 18, .glyph_index = 1980}, /*Unicode: U+f021 ()*/
|
||||
{.w_px = 18, .glyph_index = 2160}, /*Unicode: U+f026 ()*/
|
||||
{.w_px = 18, .glyph_index = 2340}, /*Unicode: U+f027 ()*/
|
||||
{.w_px = 13, .glyph_index = 2520}, /*Unicode: U+f028 ()*/
|
||||
{.w_px = 13, .glyph_index = 2660}, /*Unicode: U+f03e ()*/
|
||||
{.w_px = 16, .glyph_index = 2800}, /*Unicode: U+f040 ()*/
|
||||
{.w_px = 13, .glyph_index = 2960}, /*Unicode: U+f048 ()*/
|
||||
{.w_px = 13, .glyph_index = 3100}, /*Unicode: U+f04b ()*/
|
||||
{.w_px = 13, .glyph_index = 3240}, /*Unicode: U+f04c ()*/
|
||||
{.w_px = 9, .glyph_index = 3380}, /*Unicode: U+f04d ()*/
|
||||
{.w_px = 23, .glyph_index = 3480}, /*Unicode: U+f051 ()*/
|
||||
{.w_px = 21, .glyph_index = 3720}, /*Unicode: U+f052 ()*/
|
||||
{.w_px = 11, .glyph_index = 3940}, /*Unicode: U+f053 ()*/
|
||||
{.w_px = 11, .glyph_index = 4060}, /*Unicode: U+f054 ()*/
|
||||
{.w_px = 18, .glyph_index = 4180}, /*Unicode: U+f067 ()*/
|
||||
{.w_px = 18, .glyph_index = 4360}, /*Unicode: U+f068 ()*/
|
||||
{.w_px = 20, .glyph_index = 4540}, /*Unicode: U+f071 ()*/
|
||||
{.w_px = 20, .glyph_index = 4740}, /*Unicode: U+f074 ()*/
|
||||
{.w_px = 18, .glyph_index = 4940}, /*Unicode: U+f077 ()*/
|
||||
{.w_px = 18, .glyph_index = 5120}, /*Unicode: U+f078 ()*/
|
||||
{.w_px = 18, .glyph_index = 5300}, /*Unicode: U+f079 ()*/
|
||||
{.w_px = 20, .glyph_index = 5480}, /*Unicode: U+f07b ()*/
|
||||
{.w_px = 18, .glyph_index = 5680}, /*Unicode: U+f093 ()*/
|
||||
{.w_px = 25, .glyph_index = 5860}, /*Unicode: U+f095 ()*/
|
||||
{.w_px = 18, .glyph_index = 6120}, /*Unicode: U+f0c4 ()*/
|
||||
{.w_px = 16, .glyph_index = 6300}, /*Unicode: U+f0c5 ()*/
|
||||
{.w_px = 17, .glyph_index = 6460}, /*Unicode: U+f0c7 ()*/
|
||||
{.w_px = 8, .glyph_index = 6640}, /*Unicode: U+f0e7 ()*/
|
||||
{.w_px = 12, .glyph_index = 6720}, /*Unicode: U+f0f3 ()*/
|
||||
{.w_px = 23, .glyph_index = 6840}, /*Unicode: U+f11c ()*/
|
||||
{.w_px = 18, .glyph_index = 7080}, /*Unicode: U+f124 ()*/
|
||||
{.w_px = 13, .glyph_index = 7260}, /*Unicode: U+f15b ()*/
|
||||
{.w_px = 20, .glyph_index = 7400}, /*Unicode: U+f1eb ()*/
|
||||
{.w_px = 26, .glyph_index = 7600}, /*Unicode: U+f240 ()*/
|
||||
{.w_px = 26, .glyph_index = 7860}, /*Unicode: U+f241 ()*/
|
||||
{.w_px = 26, .glyph_index = 8120}, /*Unicode: U+f242 ()*/
|
||||
{.w_px = 26, .glyph_index = 8380}, /*Unicode: U+f243 ()*/
|
||||
{.w_px = 26, .glyph_index = 8640}, /*Unicode: U+f244 ()*/
|
||||
{.w_px = 20, .glyph_index = 8900}, /*Unicode: U+f293 ()*/
|
||||
|
||||
#elif USE_HEKATE_SYMBOL_20 == 8
|
||||
{.w_px = 5, .glyph_index = 0}, /*Unicode: U+f001 ()*/
|
||||
{.w_px = 16, .glyph_index = 100}, /*Unicode: U+f008 ()*/
|
||||
{.w_px = 20, .glyph_index = 420}, /*Unicode: U+f00b ()*/
|
||||
{.w_px = 22, .glyph_index = 820}, /*Unicode: U+f00c ()*/
|
||||
{.w_px = 16, .glyph_index = 1260}, /*Unicode: U+f00d ()*/
|
||||
{.w_px = 18, .glyph_index = 1580}, /*Unicode: U+f011 ()*/
|
||||
{.w_px = 18, .glyph_index = 1940}, /*Unicode: U+f013 ()*/
|
||||
{.w_px = 16, .glyph_index = 2300}, /*Unicode: U+f014 ()*/
|
||||
{.w_px = 23, .glyph_index = 2620}, /*Unicode: U+f015 ()*/
|
||||
{.w_px = 18, .glyph_index = 3080}, /*Unicode: U+f019 ()*/
|
||||
{.w_px = 23, .glyph_index = 3440}, /*Unicode: U+f01c ()*/
|
||||
{.w_px = 18, .glyph_index = 3900}, /*Unicode: U+f021 ()*/
|
||||
{.w_px = 18, .glyph_index = 4260}, /*Unicode: U+f026 ()*/
|
||||
{.w_px = 18, .glyph_index = 4620}, /*Unicode: U+f027 ()*/
|
||||
{.w_px = 13, .glyph_index = 4980}, /*Unicode: U+f028 ()*/
|
||||
{.w_px = 13, .glyph_index = 5240}, /*Unicode: U+f03e ()*/
|
||||
{.w_px = 16, .glyph_index = 5500}, /*Unicode: U+f040 ()*/
|
||||
{.w_px = 13, .glyph_index = 5820}, /*Unicode: U+f048 ()*/
|
||||
{.w_px = 13, .glyph_index = 6080}, /*Unicode: U+f04b ()*/
|
||||
{.w_px = 13, .glyph_index = 6340}, /*Unicode: U+f04c ()*/
|
||||
{.w_px = 9, .glyph_index = 6600}, /*Unicode: U+f04d ()*/
|
||||
{.w_px = 23, .glyph_index = 6780}, /*Unicode: U+f051 ()*/
|
||||
{.w_px = 21, .glyph_index = 7240}, /*Unicode: U+f052 ()*/
|
||||
{.w_px = 11, .glyph_index = 7660}, /*Unicode: U+f053 ()*/
|
||||
{.w_px = 11, .glyph_index = 7880}, /*Unicode: U+f054 ()*/
|
||||
{.w_px = 18, .glyph_index = 8100}, /*Unicode: U+f067 ()*/
|
||||
{.w_px = 18, .glyph_index = 8460}, /*Unicode: U+f068 ()*/
|
||||
{.w_px = 20, .glyph_index = 8820}, /*Unicode: U+f071 ()*/
|
||||
{.w_px = 20, .glyph_index = 9220}, /*Unicode: U+f074 ()*/
|
||||
{.w_px = 18, .glyph_index = 9620}, /*Unicode: U+f077 ()*/
|
||||
{.w_px = 18, .glyph_index = 9980}, /*Unicode: U+f078 ()*/
|
||||
{.w_px = 18, .glyph_index = 10340}, /*Unicode: U+f079 ()*/
|
||||
{.w_px = 20, .glyph_index = 10700}, /*Unicode: U+f07b ()*/
|
||||
{.w_px = 18, .glyph_index = 11100}, /*Unicode: U+f093 ()*/
|
||||
{.w_px = 25, .glyph_index = 11460}, /*Unicode: U+f095 ()*/
|
||||
{.w_px = 18, .glyph_index = 11960}, /*Unicode: U+f0c4 ()*/
|
||||
{.w_px = 16, .glyph_index = 12320}, /*Unicode: U+f0c5 ()*/
|
||||
{.w_px = 17, .glyph_index = 12640}, /*Unicode: U+f0c7 ()*/
|
||||
{.w_px = 8, .glyph_index = 12980}, /*Unicode: U+f0e7 ()*/
|
||||
{.w_px = 12, .glyph_index = 13140}, /*Unicode: U+f0f3 ()*/
|
||||
{.w_px = 23, .glyph_index = 13380}, /*Unicode: U+f11c ()*/
|
||||
{.w_px = 18, .glyph_index = 13840}, /*Unicode: U+f124 ()*/
|
||||
{.w_px = 13, .glyph_index = 14200}, /*Unicode: U+f15b ()*/
|
||||
{.w_px = 20, .glyph_index = 14460}, /*Unicode: U+f1eb ()*/
|
||||
{.w_px = 26, .glyph_index = 14860}, /*Unicode: U+f240 ()*/
|
||||
{.w_px = 26, .glyph_index = 15380}, /*Unicode: U+f241 ()*/
|
||||
{.w_px = 26, .glyph_index = 15900}, /*Unicode: U+f242 ()*/
|
||||
{.w_px = 26, .glyph_index = 16420}, /*Unicode: U+f243 ()*/
|
||||
{.w_px = 26, .glyph_index = 16940}, /*Unicode: U+f244 ()*/
|
||||
{.w_px = 20, .glyph_index = 17460}, /*Unicode: U+f293 ()*/
|
||||
|
||||
#endif
|
||||
};
|
||||
|
||||
lv_font_t hekate_symbol_20 =
|
||||
{
|
||||
.unicode_first = LV_SYMBOL_GLYPH_FIRST, /*First Unicode letter in this font*/
|
||||
.unicode_last = LV_SYMBOL_GLYPH_LAST, /*Last Unicode letter in this font*/
|
||||
.h_px = 20, /*Font height in pixels*/
|
||||
//.glyph_bitmap = hekate_symbol_20_glyph_bitmap, /*Bitmap of glyphs*/
|
||||
.glyph_bitmap = (const uint8_t *)(NYX_RES_ADDR + 0xFC00),
|
||||
.glyph_dsc = hekate_symbol_20_glyph_dsc, /*Description of glyphs*/
|
||||
.glyph_cnt = 50, /*Number of glyphs in the font*/
|
||||
.unicode_list = NULL, /*List of unicode characters*/
|
||||
.get_bitmap = lv_font_get_bitmap_continuous, /*Function pointer to get glyph's bitmap*/
|
||||
.get_width = lv_font_get_width_continuous, /*Function pointer to get glyph's width*/
|
||||
#if USE_HEKATE_SYMBOL_20 == 4
|
||||
.bpp = 4, /*Bit per pixel*/
|
||||
#elif USE_HEKATE_SYMBOL_20 == 8
|
||||
.bpp = 8, /*Bit per pixel*/
|
||||
#endif
|
||||
.monospace = 0, /*Fix width (0: if not used)*/
|
||||
.next_page = NULL, /*Pointer to a font extension*/
|
||||
};
|
||||
|
||||
#endif /*USE_HEKATE_SYMBOL_20*/
|
159
bdk/libs/lvgl/lv_fonts/hekate_symbol_30.c
Normal file
159
bdk/libs/lvgl/lv_fonts/hekate_symbol_30.c
Normal file
|
@ -0,0 +1,159 @@
|
|||
/*
|
||||
* Copyright (c) 2019 CTCaer
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "../lv_misc/lv_font.h"
|
||||
|
||||
#include <memory_map.h>
|
||||
|
||||
#if USE_HEKATE_SYMBOL_30 != 0 /*Can be enabled in lv_conf.h*/
|
||||
|
||||
/***********************************************************************************
|
||||
* hekate-symbols.ttf 30 px Font in U+f000 () .. U+f2ee () range with all bpp
|
||||
* Sparse font with only these characters:
|
||||
***********************************************************************************/
|
||||
|
||||
/*Store the glyph descriptions*/
|
||||
static const lv_font_glyph_dsc_t hekate_symbol_30_glyph_dsc[] =
|
||||
{
|
||||
#if USE_HEKATE_SYMBOL_30 == 4
|
||||
{.w_px = 7, .glyph_index = 0}, /*Unicode: U+f001 ()*/
|
||||
{.w_px = 25, .glyph_index = 120}, /*Unicode: U+f008 ()*/
|
||||
{.w_px = 27, .glyph_index = 510}, /*Unicode: U+f00b ()*/
|
||||
{.w_px = 31, .glyph_index = 930}, /*Unicode: U+f00c ()*/
|
||||
{.w_px = 22, .glyph_index = 1410}, /*Unicode: U+f00d ()*/
|
||||
{.w_px = 25, .glyph_index = 1740}, /*Unicode: U+f011 ()*/
|
||||
{.w_px = 25, .glyph_index = 2130}, /*Unicode: U+f013 ()*/
|
||||
{.w_px = 23, .glyph_index = 2520}, /*Unicode: U+f014 ()*/
|
||||
{.w_px = 34, .glyph_index = 2880}, /*Unicode: U+f015 ()*/
|
||||
{.w_px = 25, .glyph_index = 3390}, /*Unicode: U+f019 ()*/
|
||||
{.w_px = 32, .glyph_index = 3780}, /*Unicode: U+f01c ()*/
|
||||
{.w_px = 25, .glyph_index = 4260}, /*Unicode: U+f021 ()*/
|
||||
{.w_px = 25, .glyph_index = 4650}, /*Unicode: U+f026 ()*/
|
||||
{.w_px = 25, .glyph_index = 5040}, /*Unicode: U+f027 ()*/
|
||||
{.w_px = 20, .glyph_index = 5430}, /*Unicode: U+f028 ()*/
|
||||
{.w_px = 20, .glyph_index = 5730}, /*Unicode: U+f03e ()*/
|
||||
{.w_px = 25, .glyph_index = 6030}, /*Unicode: U+f040 ()*/
|
||||
{.w_px = 20, .glyph_index = 6420}, /*Unicode: U+f048 ()*/
|
||||
{.w_px = 20, .glyph_index = 6720}, /*Unicode: U+f04b ()*/
|
||||
{.w_px = 20, .glyph_index = 7020}, /*Unicode: U+f04c ()*/
|
||||
{.w_px = 13, .glyph_index = 7320}, /*Unicode: U+f04d ()*/
|
||||
{.w_px = 32, .glyph_index = 7530}, /*Unicode: U+f051 ()*/
|
||||
{.w_px = 30, .glyph_index = 8010}, /*Unicode: U+f052 ()*/
|
||||
{.w_px = 16, .glyph_index = 8460}, /*Unicode: U+f053 ()*/
|
||||
{.w_px = 16, .glyph_index = 8700}, /*Unicode: U+f054 ()*/
|
||||
{.w_px = 25, .glyph_index = 8940}, /*Unicode: U+f067 ()*/
|
||||
{.w_px = 25, .glyph_index = 9330}, /*Unicode: U+f068 ()*/
|
||||
{.w_px = 27, .glyph_index = 9720}, /*Unicode: U+f071 ()*/
|
||||
{.w_px = 29, .glyph_index = 10140}, /*Unicode: U+f074 ()*/
|
||||
{.w_px = 26, .glyph_index = 10590}, /*Unicode: U+f077 ()*/
|
||||
{.w_px = 26, .glyph_index = 10980}, /*Unicode: U+f078 ()*/
|
||||
{.w_px = 25, .glyph_index = 11370}, /*Unicode: U+f079 ()*/
|
||||
{.w_px = 29, .glyph_index = 11760}, /*Unicode: U+f07b ()*/
|
||||
{.w_px = 25, .glyph_index = 12210}, /*Unicode: U+f093 ()*/
|
||||
{.w_px = 37, .glyph_index = 12600}, /*Unicode: U+f095 ()*/
|
||||
{.w_px = 25, .glyph_index = 13170}, /*Unicode: U+f0c4 ()*/
|
||||
{.w_px = 23, .glyph_index = 13560}, /*Unicode: U+f0c5 ()*/
|
||||
{.w_px = 24, .glyph_index = 13920}, /*Unicode: U+f0c7 ()*/
|
||||
{.w_px = 13, .glyph_index = 14280}, /*Unicode: U+f0e7 ()*/
|
||||
{.w_px = 18, .glyph_index = 14490}, /*Unicode: U+f0f3 ()*/
|
||||
{.w_px = 33, .glyph_index = 14760}, /*Unicode: U+f11c ()*/
|
||||
{.w_px = 25, .glyph_index = 15270}, /*Unicode: U+f124 ()*/
|
||||
{.w_px = 20, .glyph_index = 15660}, /*Unicode: U+f15b ()*/
|
||||
{.w_px = 29, .glyph_index = 15960}, /*Unicode: U+f1eb ()*/
|
||||
{.w_px = 38, .glyph_index = 16410}, /*Unicode: U+f240 ()*/
|
||||
{.w_px = 38, .glyph_index = 16980}, /*Unicode: U+f241 ()*/
|
||||
{.w_px = 38, .glyph_index = 17550}, /*Unicode: U+f242 ()*/
|
||||
{.w_px = 38, .glyph_index = 18120}, /*Unicode: U+f243 ()*/
|
||||
{.w_px = 38, .glyph_index = 18690}, /*Unicode: U+f244 ()*/
|
||||
{.w_px = 29, .glyph_index = 19260}, /*Unicode: U+f293 ()*/
|
||||
|
||||
#elif USE_HEKATE_SYMBOL_30 == 8
|
||||
{.w_px = 7, .glyph_index = 0}, /*Unicode: U+f001 ()*/
|
||||
{.w_px = 25, .glyph_index = 210}, /*Unicode: U+f008 ()*/
|
||||
{.w_px = 27, .glyph_index = 960}, /*Unicode: U+f00b ()*/
|
||||
{.w_px = 31, .glyph_index = 1770}, /*Unicode: U+f00c ()*/
|
||||
{.w_px = 22, .glyph_index = 2700}, /*Unicode: U+f00d ()*/
|
||||
{.w_px = 25, .glyph_index = 3360}, /*Unicode: U+f011 ()*/
|
||||
{.w_px = 25, .glyph_index = 4110}, /*Unicode: U+f013 ()*/
|
||||
{.w_px = 23, .glyph_index = 4860}, /*Unicode: U+f014 ()*/
|
||||
{.w_px = 34, .glyph_index = 5550}, /*Unicode: U+f015 ()*/
|
||||
{.w_px = 25, .glyph_index = 6570}, /*Unicode: U+f019 ()*/
|
||||
{.w_px = 32, .glyph_index = 7320}, /*Unicode: U+f01c ()*/
|
||||
{.w_px = 25, .glyph_index = 8280}, /*Unicode: U+f021 ()*/
|
||||
{.w_px = 25, .glyph_index = 9030}, /*Unicode: U+f026 ()*/
|
||||
{.w_px = 25, .glyph_index = 9780}, /*Unicode: U+f027 ()*/
|
||||
{.w_px = 20, .glyph_index = 10530}, /*Unicode: U+f028 ()*/
|
||||
{.w_px = 20, .glyph_index = 11130}, /*Unicode: U+f03e ()*/
|
||||
{.w_px = 25, .glyph_index = 11730}, /*Unicode: U+f040 ()*/
|
||||
{.w_px = 20, .glyph_index = 12480}, /*Unicode: U+f048 ()*/
|
||||
{.w_px = 20, .glyph_index = 13080}, /*Unicode: U+f04b ()*/
|
||||
{.w_px = 20, .glyph_index = 13680}, /*Unicode: U+f04c ()*/
|
||||
{.w_px = 13, .glyph_index = 14280}, /*Unicode: U+f04d ()*/
|
||||
{.w_px = 32, .glyph_index = 14670}, /*Unicode: U+f051 ()*/
|
||||
{.w_px = 30, .glyph_index = 15630}, /*Unicode: U+f052 ()*/
|
||||
{.w_px = 16, .glyph_index = 16530}, /*Unicode: U+f053 ()*/
|
||||
{.w_px = 16, .glyph_index = 17010}, /*Unicode: U+f054 ()*/
|
||||
{.w_px = 25, .glyph_index = 17490}, /*Unicode: U+f067 ()*/
|
||||
{.w_px = 25, .glyph_index = 18240}, /*Unicode: U+f068 ()*/
|
||||
{.w_px = 27, .glyph_index = 18990}, /*Unicode: U+f071 ()*/
|
||||
{.w_px = 29, .glyph_index = 19800}, /*Unicode: U+f074 ()*/
|
||||
{.w_px = 26, .glyph_index = 20670}, /*Unicode: U+f077 ()*/
|
||||
{.w_px = 26, .glyph_index = 21450}, /*Unicode: U+f078 ()*/
|
||||
{.w_px = 25, .glyph_index = 22230}, /*Unicode: U+f079 ()*/
|
||||
{.w_px = 29, .glyph_index = 22980}, /*Unicode: U+f07b ()*/
|
||||
{.w_px = 25, .glyph_index = 23850}, /*Unicode: U+f093 ()*/
|
||||
{.w_px = 37, .glyph_index = 24600}, /*Unicode: U+f095 ()*/
|
||||
{.w_px = 25, .glyph_index = 25710}, /*Unicode: U+f0c4 ()*/
|
||||
{.w_px = 23, .glyph_index = 26460}, /*Unicode: U+f0c5 ()*/
|
||||
{.w_px = 24, .glyph_index = 27150}, /*Unicode: U+f0c7 ()*/
|
||||
{.w_px = 13, .glyph_index = 27870}, /*Unicode: U+f0e7 ()*/
|
||||
{.w_px = 18, .glyph_index = 28260}, /*Unicode: U+f0f3 ()*/
|
||||
{.w_px = 33, .glyph_index = 28800}, /*Unicode: U+f11c ()*/
|
||||
{.w_px = 25, .glyph_index = 29790}, /*Unicode: U+f124 ()*/
|
||||
{.w_px = 20, .glyph_index = 30540}, /*Unicode: U+f15b ()*/
|
||||
{.w_px = 29, .glyph_index = 31140}, /*Unicode: U+f1eb ()*/
|
||||
{.w_px = 38, .glyph_index = 32010}, /*Unicode: U+f240 ()*/
|
||||
{.w_px = 38, .glyph_index = 33150}, /*Unicode: U+f241 ()*/
|
||||
{.w_px = 38, .glyph_index = 34290}, /*Unicode: U+f242 ()*/
|
||||
{.w_px = 38, .glyph_index = 35430}, /*Unicode: U+f243 ()*/
|
||||
{.w_px = 38, .glyph_index = 36570}, /*Unicode: U+f244 ()*/
|
||||
{.w_px = 29, .glyph_index = 37710}, /*Unicode: U+f293 ()*/
|
||||
|
||||
#endif
|
||||
};
|
||||
|
||||
lv_font_t hekate_symbol_30 =
|
||||
{
|
||||
.unicode_first = LV_SYMBOL_GLYPH_FIRST, /*First Unicode letter in this font*/
|
||||
.unicode_last = LV_SYMBOL_GLYPH_LAST, /*Last Unicode letter in this font*/
|
||||
.h_px = 30, /*Font height in pixels*/
|
||||
//.glyph_bitmap = hekate_symbol_30_glyph_bitmap, /*Bitmap of glyphs*/
|
||||
.glyph_bitmap = (const uint8_t *)(NYX_RES_ADDR + 0x14200),
|
||||
.glyph_dsc = hekate_symbol_30_glyph_dsc, /*Description of glyphs*/
|
||||
.glyph_cnt = 50, /*Number of glyphs in the font*/
|
||||
.unicode_list = NULL, /*List of unicode characters*/
|
||||
.get_bitmap = lv_font_get_bitmap_continuous, /*Function pointer to get glyph's bitmap*/
|
||||
.get_width = lv_font_get_width_continuous, /*Function pointer to get glyph's width*/
|
||||
#if USE_HEKATE_SYMBOL_30 == 4
|
||||
.bpp = 4, /*Bit per pixel*/
|
||||
#elif USE_HEKATE_SYMBOL_30 == 8
|
||||
.bpp = 8, /*Bit per pixel*/
|
||||
#endif
|
||||
.monospace = 0, /*Fix width (0: if not used)*/
|
||||
.next_page = NULL, /*Pointer to a font extension*/
|
||||
};
|
||||
|
||||
#endif /*USE_HEKATE_SYMBOL_30*/
|
248
bdk/libs/lvgl/lv_fonts/interui_20.c
Normal file
248
bdk/libs/lvgl/lv_fonts/interui_20.c
Normal file
|
@ -0,0 +1,248 @@
|
|||
/*
|
||||
* Copyright (c) 2019 CTCaer
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "../lv_misc/lv_font.h"
|
||||
|
||||
#include <memory_map.h>
|
||||
|
||||
#if USE_INTERUI_20 != 0 /*Can be enabled in lv_conf.h*/
|
||||
|
||||
/***********************************************************************************
|
||||
* Inter-UI-Regular-stretched.ttf 20 px Font in U+0020 ( ) .. U+007e (~) range with all bpp
|
||||
***********************************************************************************/
|
||||
|
||||
/*Store the glyph descriptions*/
|
||||
static const lv_font_glyph_dsc_t interui_20_glyph_dsc[] =
|
||||
{
|
||||
#if USE_INTERUI_20 == 4
|
||||
{.w_px = 6, .glyph_index = 0}, /*Unicode: U+0020 ( )*/
|
||||
{.w_px = 3, .glyph_index = 60}, /*Unicode: U+0021 (!)*/
|
||||
{.w_px = 5, .glyph_index = 100}, /*Unicode: U+0022 (")*/
|
||||
{.w_px = 8, .glyph_index = 160}, /*Unicode: U+0023 (#)*/
|
||||
{.w_px = 9, .glyph_index = 240}, /*Unicode: U+0024 ($)*/
|
||||
{.w_px = 14, .glyph_index = 340}, /*Unicode: U+0025 (%)*/
|
||||
{.w_px = 12, .glyph_index = 480}, /*Unicode: U+0026 (&)*/
|
||||
{.w_px = 3, .glyph_index = 600}, /*Unicode: U+0027 (')*/
|
||||
{.w_px = 5, .glyph_index = 640}, /*Unicode: U+0028 (()*/
|
||||
{.w_px = 5, .glyph_index = 700}, /*Unicode: U+0029 ())*/
|
||||
{.w_px = 7, .glyph_index = 760}, /*Unicode: U+002a (*)*/
|
||||
{.w_px = 10, .glyph_index = 840}, /*Unicode: U+002b (+)*/
|
||||
{.w_px = 3, .glyph_index = 940}, /*Unicode: U+002c (,)*/
|
||||
{.w_px = 5, .glyph_index = 980}, /*Unicode: U+002d (-)*/
|
||||
{.w_px = 3, .glyph_index = 1040}, /*Unicode: U+002e (.)*/
|
||||
{.w_px = 8, .glyph_index = 1080}, /*Unicode: U+002f (/)*/
|
||||
{.w_px = 10, .glyph_index = 1160}, /*Unicode: U+0030 (0)*/
|
||||
{.w_px = 5, .glyph_index = 1260}, /*Unicode: U+0031 (1)*/
|
||||
{.w_px = 9, .glyph_index = 1320}, /*Unicode: U+0032 (2)*/
|
||||
{.w_px = 10, .glyph_index = 1420}, /*Unicode: U+0033 (3)*/
|
||||
{.w_px = 9, .glyph_index = 1520}, /*Unicode: U+0034 (4)*/
|
||||
{.w_px = 9, .glyph_index = 1620}, /*Unicode: U+0035 (5)*/
|
||||
{.w_px = 10, .glyph_index = 1720}, /*Unicode: U+0036 (6)*/
|
||||
{.w_px = 8, .glyph_index = 1820}, /*Unicode: U+0037 (7)*/
|
||||
{.w_px = 10, .glyph_index = 1900}, /*Unicode: U+0038 (8)*/
|
||||
{.w_px = 10, .glyph_index = 2000}, /*Unicode: U+0039 (9)*/
|
||||
{.w_px = 3, .glyph_index = 2100}, /*Unicode: U+003a (:)*/
|
||||
{.w_px = 3, .glyph_index = 2140}, /*Unicode: U+003b (;)*/
|
||||
{.w_px = 12, .glyph_index = 2180}, /*Unicode: U+003c (<)*/
|
||||
{.w_px = 10, .glyph_index = 2300}, /*Unicode: U+003d (=)*/
|
||||
{.w_px = 12, .glyph_index = 2400}, /*Unicode: U+003e (>)*/
|
||||
{.w_px = 8, .glyph_index = 2520}, /*Unicode: U+003f (?)*/
|
||||
{.w_px = 14, .glyph_index = 2600}, /*Unicode: U+0040 (@)*/
|
||||
{.w_px = 12, .glyph_index = 2740}, /*Unicode: U+0041 (A)*/
|
||||
{.w_px = 10, .glyph_index = 2860}, /*Unicode: U+0042 (B)*/
|
||||
{.w_px = 11, .glyph_index = 2960}, /*Unicode: U+0043 (C)*/
|
||||
{.w_px = 12, .glyph_index = 3080}, /*Unicode: U+0044 (D)*/
|
||||
{.w_px = 9, .glyph_index = 3200}, /*Unicode: U+0045 (E)*/
|
||||
{.w_px = 8, .glyph_index = 3300}, /*Unicode: U+0046 (F)*/
|
||||
{.w_px = 12, .glyph_index = 3380}, /*Unicode: U+0047 (G)*/
|
||||
{.w_px = 10, .glyph_index = 3500}, /*Unicode: U+0048 (H)*/
|
||||
{.w_px = 3, .glyph_index = 3600}, /*Unicode: U+0049 (I)*/
|
||||
{.w_px = 7, .glyph_index = 3640}, /*Unicode: U+004a (J)*/
|
||||
{.w_px = 10, .glyph_index = 3720}, /*Unicode: U+004b (K)*/
|
||||
{.w_px = 7, .glyph_index = 3820}, /*Unicode: U+004c (L)*/
|
||||
{.w_px = 15, .glyph_index = 3900}, /*Unicode: U+004d (M)*/
|
||||
{.w_px = 12, .glyph_index = 4060}, /*Unicode: U+004e (N)*/
|
||||
{.w_px = 14, .glyph_index = 4180}, /*Unicode: U+004f (O)*/
|
||||
{.w_px = 9, .glyph_index = 4320}, /*Unicode: U+0050 (P)*/
|
||||
{.w_px = 14, .glyph_index = 4420}, /*Unicode: U+0051 (Q)*/
|
||||
{.w_px = 9, .glyph_index = 4560}, /*Unicode: U+0052 (R)*/
|
||||
{.w_px = 9, .glyph_index = 4660}, /*Unicode: U+0053 (S)*/
|
||||
{.w_px = 9, .glyph_index = 4760}, /*Unicode: U+0054 (T)*/
|
||||
{.w_px = 12, .glyph_index = 4860}, /*Unicode: U+0055 (U)*/
|
||||
{.w_px = 12, .glyph_index = 4980}, /*Unicode: U+0056 (V)*/
|
||||
{.w_px = 18, .glyph_index = 5100}, /*Unicode: U+0057 (W)*/
|
||||
{.w_px = 10, .glyph_index = 5280}, /*Unicode: U+0058 (X)*/
|
||||
{.w_px = 10, .glyph_index = 5380}, /*Unicode: U+0059 (Y)*/
|
||||
{.w_px = 10, .glyph_index = 5480}, /*Unicode: U+005a (Z)*/
|
||||
{.w_px = 5, .glyph_index = 5580}, /*Unicode: U+005b ([)*/
|
||||
{.w_px = 8, .glyph_index = 5640}, /*Unicode: U+005c (\)*/
|
||||
{.w_px = 5, .glyph_index = 5720}, /*Unicode: U+005d (])*/
|
||||
{.w_px = 9, .glyph_index = 5780}, /*Unicode: U+005e (^)*/
|
||||
{.w_px = 8, .glyph_index = 5880}, /*Unicode: U+005f (_)*/
|
||||
{.w_px = 4, .glyph_index = 5960}, /*Unicode: U+0060 (`)*/
|
||||
{.w_px = 9, .glyph_index = 6000}, /*Unicode: U+0061 (a)*/
|
||||
{.w_px = 10, .glyph_index = 6100}, /*Unicode: U+0062 (b)*/
|
||||
{.w_px = 8, .glyph_index = 6200}, /*Unicode: U+0063 (c)*/
|
||||
{.w_px = 10, .glyph_index = 6280}, /*Unicode: U+0064 (d)*/
|
||||
{.w_px = 9, .glyph_index = 6380}, /*Unicode: U+0065 (e)*/
|
||||
{.w_px = 4, .glyph_index = 6480}, /*Unicode: U+0066 (f)*/
|
||||
{.w_px = 9, .glyph_index = 6520}, /*Unicode: U+0067 (g)*/
|
||||
{.w_px = 9, .glyph_index = 6620}, /*Unicode: U+0068 (h)*/
|
||||
{.w_px = 3, .glyph_index = 6720}, /*Unicode: U+0069 (i)*/
|
||||
{.w_px = 5, .glyph_index = 6760}, /*Unicode: U+006a (j)*/
|
||||
{.w_px = 8, .glyph_index = 6820}, /*Unicode: U+006b (k)*/
|
||||
{.w_px = 4, .glyph_index = 6900}, /*Unicode: U+006c (l)*/
|
||||
{.w_px = 13, .glyph_index = 6940}, /*Unicode: U+006d (m)*/
|
||||
{.w_px = 9, .glyph_index = 7080}, /*Unicode: U+006e (n)*/
|
||||
{.w_px = 10, .glyph_index = 7180}, /*Unicode: U+006f (o)*/
|
||||
{.w_px = 10, .glyph_index = 7280}, /*Unicode: U+0070 (p)*/
|
||||
{.w_px = 10, .glyph_index = 7380}, /*Unicode: U+0071 (q)*/
|
||||
{.w_px = 5, .glyph_index = 7480}, /*Unicode: U+0072 (r)*/
|
||||
{.w_px = 8, .glyph_index = 7540}, /*Unicode: U+0073 (s)*/
|
||||
{.w_px = 5, .glyph_index = 7620}, /*Unicode: U+0074 (t)*/
|
||||
{.w_px = 9, .glyph_index = 7680}, /*Unicode: U+0075 (u)*/
|
||||
{.w_px = 8, .glyph_index = 7780}, /*Unicode: U+0076 (v)*/
|
||||
{.w_px = 14, .glyph_index = 7860}, /*Unicode: U+0077 (w)*/
|
||||
{.w_px = 8, .glyph_index = 8000}, /*Unicode: U+0078 (x)*/
|
||||
{.w_px = 8, .glyph_index = 8080}, /*Unicode: U+0079 (y)*/
|
||||
{.w_px = 7, .glyph_index = 8160}, /*Unicode: U+007a (z)*/
|
||||
{.w_px = 4, .glyph_index = 8240}, /*Unicode: U+007b ({)*/
|
||||
{.w_px = 3, .glyph_index = 8280}, /*Unicode: U+007c (|)*/
|
||||
{.w_px = 4, .glyph_index = 8320}, /*Unicode: U+007d (})*/
|
||||
{.w_px = 6, .glyph_index = 8360}, /*Unicode: U+007e (~)*/
|
||||
|
||||
#elif USE_INTERUI_20 == 8
|
||||
{.w_px = 6, .glyph_index = 0}, /*Unicode: U+0020 ( )*/
|
||||
{.w_px = 3, .glyph_index = 120}, /*Unicode: U+0021 (!)*/
|
||||
{.w_px = 5, .glyph_index = 180}, /*Unicode: U+0022 (")*/
|
||||
{.w_px = 8, .glyph_index = 280}, /*Unicode: U+0023 (#)*/
|
||||
{.w_px = 9, .glyph_index = 440}, /*Unicode: U+0024 ($)*/
|
||||
{.w_px = 14, .glyph_index = 620}, /*Unicode: U+0025 (%)*/
|
||||
{.w_px = 12, .glyph_index = 900}, /*Unicode: U+0026 (&)*/
|
||||
{.w_px = 3, .glyph_index = 1140}, /*Unicode: U+0027 (')*/
|
||||
{.w_px = 5, .glyph_index = 1200}, /*Unicode: U+0028 (()*/
|
||||
{.w_px = 5, .glyph_index = 1300}, /*Unicode: U+0029 ())*/
|
||||
{.w_px = 7, .glyph_index = 1400}, /*Unicode: U+002a (*)*/
|
||||
{.w_px = 10, .glyph_index = 1540}, /*Unicode: U+002b (+)*/
|
||||
{.w_px = 3, .glyph_index = 1740}, /*Unicode: U+002c (,)*/
|
||||
{.w_px = 5, .glyph_index = 1800}, /*Unicode: U+002d (-)*/
|
||||
{.w_px = 3, .glyph_index = 1900}, /*Unicode: U+002e (.)*/
|
||||
{.w_px = 8, .glyph_index = 1960}, /*Unicode: U+002f (/)*/
|
||||
{.w_px = 10, .glyph_index = 2120}, /*Unicode: U+0030 (0)*/
|
||||
{.w_px = 5, .glyph_index = 2320}, /*Unicode: U+0031 (1)*/
|
||||
{.w_px = 9, .glyph_index = 2420}, /*Unicode: U+0032 (2)*/
|
||||
{.w_px = 10, .glyph_index = 2600}, /*Unicode: U+0033 (3)*/
|
||||
{.w_px = 9, .glyph_index = 2800}, /*Unicode: U+0034 (4)*/
|
||||
{.w_px = 9, .glyph_index = 2980}, /*Unicode: U+0035 (5)*/
|
||||
{.w_px = 10, .glyph_index = 3160}, /*Unicode: U+0036 (6)*/
|
||||
{.w_px = 8, .glyph_index = 3360}, /*Unicode: U+0037 (7)*/
|
||||
{.w_px = 10, .glyph_index = 3520}, /*Unicode: U+0038 (8)*/
|
||||
{.w_px = 10, .glyph_index = 3720}, /*Unicode: U+0039 (9)*/
|
||||
{.w_px = 3, .glyph_index = 3920}, /*Unicode: U+003a (:)*/
|
||||
{.w_px = 3, .glyph_index = 3980}, /*Unicode: U+003b (;)*/
|
||||
{.w_px = 12, .glyph_index = 4040}, /*Unicode: U+003c (<)*/
|
||||
{.w_px = 10, .glyph_index = 4280}, /*Unicode: U+003d (=)*/
|
||||
{.w_px = 12, .glyph_index = 4480}, /*Unicode: U+003e (>)*/
|
||||
{.w_px = 8, .glyph_index = 4720}, /*Unicode: U+003f (?)*/
|
||||
{.w_px = 14, .glyph_index = 4880}, /*Unicode: U+0040 (@)*/
|
||||
{.w_px = 12, .glyph_index = 5160}, /*Unicode: U+0041 (A)*/
|
||||
{.w_px = 10, .glyph_index = 5400}, /*Unicode: U+0042 (B)*/
|
||||
{.w_px = 11, .glyph_index = 5600}, /*Unicode: U+0043 (C)*/
|
||||
{.w_px = 12, .glyph_index = 5820}, /*Unicode: U+0044 (D)*/
|
||||
{.w_px = 9, .glyph_index = 6060}, /*Unicode: U+0045 (E)*/
|
||||
{.w_px = 8, .glyph_index = 6240}, /*Unicode: U+0046 (F)*/
|
||||
{.w_px = 12, .glyph_index = 6400}, /*Unicode: U+0047 (G)*/
|
||||
{.w_px = 10, .glyph_index = 6640}, /*Unicode: U+0048 (H)*/
|
||||
{.w_px = 3, .glyph_index = 6840}, /*Unicode: U+0049 (I)*/
|
||||
{.w_px = 7, .glyph_index = 6900}, /*Unicode: U+004a (J)*/
|
||||
{.w_px = 10, .glyph_index = 7040}, /*Unicode: U+004b (K)*/
|
||||
{.w_px = 7, .glyph_index = 7240}, /*Unicode: U+004c (L)*/
|
||||
{.w_px = 15, .glyph_index = 7380}, /*Unicode: U+004d (M)*/
|
||||
{.w_px = 12, .glyph_index = 7680}, /*Unicode: U+004e (N)*/
|
||||
{.w_px = 14, .glyph_index = 7920}, /*Unicode: U+004f (O)*/
|
||||
{.w_px = 9, .glyph_index = 8200}, /*Unicode: U+0050 (P)*/
|
||||
{.w_px = 14, .glyph_index = 8380}, /*Unicode: U+0051 (Q)*/
|
||||
{.w_px = 9, .glyph_index = 8660}, /*Unicode: U+0052 (R)*/
|
||||
{.w_px = 9, .glyph_index = 8840}, /*Unicode: U+0053 (S)*/
|
||||
{.w_px = 9, .glyph_index = 9020}, /*Unicode: U+0054 (T)*/
|
||||
{.w_px = 12, .glyph_index = 9200}, /*Unicode: U+0055 (U)*/
|
||||
{.w_px = 12, .glyph_index = 9440}, /*Unicode: U+0056 (V)*/
|
||||
{.w_px = 18, .glyph_index = 9680}, /*Unicode: U+0057 (W)*/
|
||||
{.w_px = 10, .glyph_index = 10040}, /*Unicode: U+0058 (X)*/
|
||||
{.w_px = 10, .glyph_index = 10240}, /*Unicode: U+0059 (Y)*/
|
||||
{.w_px = 10, .glyph_index = 10440}, /*Unicode: U+005a (Z)*/
|
||||
{.w_px = 5, .glyph_index = 10640}, /*Unicode: U+005b ([)*/
|
||||
{.w_px = 8, .glyph_index = 10740}, /*Unicode: U+005c (\)*/
|
||||
{.w_px = 5, .glyph_index = 10900}, /*Unicode: U+005d (])*/
|
||||
{.w_px = 9, .glyph_index = 11000}, /*Unicode: U+005e (^)*/
|
||||
{.w_px = 8, .glyph_index = 11180}, /*Unicode: U+005f (_)*/
|
||||
{.w_px = 4, .glyph_index = 11340}, /*Unicode: U+0060 (`)*/
|
||||
{.w_px = 9, .glyph_index = 11420}, /*Unicode: U+0061 (a)*/
|
||||
{.w_px = 10, .glyph_index = 11600}, /*Unicode: U+0062 (b)*/
|
||||
{.w_px = 8, .glyph_index = 11800}, /*Unicode: U+0063 (c)*/
|
||||
{.w_px = 10, .glyph_index = 11960}, /*Unicode: U+0064 (d)*/
|
||||
{.w_px = 9, .glyph_index = 12160}, /*Unicode: U+0065 (e)*/
|
||||
{.w_px = 4, .glyph_index = 12340}, /*Unicode: U+0066 (f)*/
|
||||
{.w_px = 9, .glyph_index = 12420}, /*Unicode: U+0067 (g)*/
|
||||
{.w_px = 9, .glyph_index = 12600}, /*Unicode: U+0068 (h)*/
|
||||
{.w_px = 3, .glyph_index = 12780}, /*Unicode: U+0069 (i)*/
|
||||
{.w_px = 5, .glyph_index = 12840}, /*Unicode: U+006a (j)*/
|
||||
{.w_px = 8, .glyph_index = 12940}, /*Unicode: U+006b (k)*/
|
||||
{.w_px = 4, .glyph_index = 13100}, /*Unicode: U+006c (l)*/
|
||||
{.w_px = 13, .glyph_index = 13180}, /*Unicode: U+006d (m)*/
|
||||
{.w_px = 9, .glyph_index = 13440}, /*Unicode: U+006e (n)*/
|
||||
{.w_px = 10, .glyph_index = 13620}, /*Unicode: U+006f (o)*/
|
||||
{.w_px = 10, .glyph_index = 13820}, /*Unicode: U+0070 (p)*/
|
||||
{.w_px = 10, .glyph_index = 14020}, /*Unicode: U+0071 (q)*/
|
||||
{.w_px = 5, .glyph_index = 14220}, /*Unicode: U+0072 (r)*/
|
||||
{.w_px = 8, .glyph_index = 14320}, /*Unicode: U+0073 (s)*/
|
||||
{.w_px = 5, .glyph_index = 14480}, /*Unicode: U+0074 (t)*/
|
||||
{.w_px = 9, .glyph_index = 14580}, /*Unicode: U+0075 (u)*/
|
||||
{.w_px = 8, .glyph_index = 14760}, /*Unicode: U+0076 (v)*/
|
||||
{.w_px = 14, .glyph_index = 14920}, /*Unicode: U+0077 (w)*/
|
||||
{.w_px = 8, .glyph_index = 15200}, /*Unicode: U+0078 (x)*/
|
||||
{.w_px = 8, .glyph_index = 15360}, /*Unicode: U+0079 (y)*/
|
||||
{.w_px = 7, .glyph_index = 15520}, /*Unicode: U+007a (z)*/
|
||||
{.w_px = 4, .glyph_index = 15660}, /*Unicode: U+007b ({)*/
|
||||
{.w_px = 3, .glyph_index = 15740}, /*Unicode: U+007c (|)*/
|
||||
{.w_px = 4, .glyph_index = 15800}, /*Unicode: U+007d (})*/
|
||||
{.w_px = 6, .glyph_index = 15880}, /*Unicode: U+007e (~)*/
|
||||
|
||||
#endif
|
||||
};
|
||||
|
||||
lv_font_t interui_20 =
|
||||
{
|
||||
.unicode_first = 32, /*First Unicode letter in this font*/
|
||||
.unicode_last = 126, /*Last Unicode letter in this font*/
|
||||
.h_px = 20, /*Font height in pixels*/
|
||||
//.glyph_bitmap = interui_20_glyph_bitmap, /*Bitmap of glyphs*/
|
||||
.glyph_bitmap = (const uint8_t *)(NYX_RES_ADDR + 0x3A00),
|
||||
.glyph_dsc = interui_20_glyph_dsc, /*Description of glyphs*/
|
||||
.glyph_cnt = 95, /*Number of glyphs in the font*/
|
||||
.unicode_list = NULL, /*Every character in the font from 'unicode_first' to 'unicode_last'*/
|
||||
.get_bitmap = lv_font_get_bitmap_continuous, /*Function pointer to get glyph's bitmap*/
|
||||
.get_width = lv_font_get_width_continuous, /*Function pointer to get glyph's width*/
|
||||
#if USE_INTERUI_20 == 4
|
||||
.bpp = 4, /*Bit per pixel*/
|
||||
#elif USE_INTERUI_20 == 8
|
||||
.bpp = 8, /*Bit per pixel*/
|
||||
#endif
|
||||
.monospace = 0, /*Fix width (0: if not used)*/
|
||||
.next_page = NULL, /*Pointer to a font extension*/
|
||||
};
|
||||
|
||||
#endif /*USE_INTERUI_20*/
|
248
bdk/libs/lvgl/lv_fonts/interui_30.c
Normal file
248
bdk/libs/lvgl/lv_fonts/interui_30.c
Normal file
|
@ -0,0 +1,248 @@
|
|||
/*
|
||||
* Copyright (c) 2019 CTCaer
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "../lv_misc/lv_font.h"
|
||||
|
||||
#include <memory_map.h>
|
||||
|
||||
#if USE_INTERUI_30 != 0 /*Can be enabled in lv_conf.h*/
|
||||
|
||||
/***********************************************************************************
|
||||
* Inter-UI-Regular-stretched.ttf 30 px Font in U+0020 ( ) .. U+007e (~) range with all bpp
|
||||
***********************************************************************************/
|
||||
|
||||
/*Store the glyph descriptions*/
|
||||
static const lv_font_glyph_dsc_t interui_30_glyph_dsc[] =
|
||||
{
|
||||
#if USE_INTERUI_30 == 4
|
||||
{.w_px = 8, .glyph_index = 0}, /*Unicode: U+0020 ( )*/
|
||||
{.w_px = 3, .glyph_index = 120}, /*Unicode: U+0021 (!)*/
|
||||
{.w_px = 6, .glyph_index = 180}, /*Unicode: U+0022 (")*/
|
||||
{.w_px = 13, .glyph_index = 270}, /*Unicode: U+0023 (#)*/
|
||||
{.w_px = 12, .glyph_index = 480}, /*Unicode: U+0024 ($)*/
|
||||
{.w_px = 18, .glyph_index = 660}, /*Unicode: U+0025 (%)*/
|
||||
{.w_px = 16, .glyph_index = 930}, /*Unicode: U+0026 (&)*/
|
||||
{.w_px = 3, .glyph_index = 1170}, /*Unicode: U+0027 (')*/
|
||||
{.w_px = 6, .glyph_index = 1230}, /*Unicode: U+0028 (()*/
|
||||
{.w_px = 7, .glyph_index = 1320}, /*Unicode: U+0029 ())*/
|
||||
{.w_px = 9, .glyph_index = 1440}, /*Unicode: U+002a (*)*/
|
||||
{.w_px = 16, .glyph_index = 1590}, /*Unicode: U+002b (+)*/
|
||||
{.w_px = 3, .glyph_index = 1830}, /*Unicode: U+002c (,)*/
|
||||
{.w_px = 8, .glyph_index = 1890}, /*Unicode: U+002d (-)*/
|
||||
{.w_px = 3, .glyph_index = 2010}, /*Unicode: U+002e (.)*/
|
||||
{.w_px = 11, .glyph_index = 2070}, /*Unicode: U+002f (/)*/
|
||||
{.w_px = 13, .glyph_index = 2250}, /*Unicode: U+0030 (0)*/
|
||||
{.w_px = 7, .glyph_index = 2460}, /*Unicode: U+0031 (1)*/
|
||||
{.w_px = 13, .glyph_index = 2580}, /*Unicode: U+0032 (2)*/
|
||||
{.w_px = 14, .glyph_index = 2790}, /*Unicode: U+0033 (3)*/
|
||||
{.w_px = 13, .glyph_index = 3000}, /*Unicode: U+0034 (4)*/
|
||||
{.w_px = 14, .glyph_index = 3210}, /*Unicode: U+0035 (5)*/
|
||||
{.w_px = 13, .glyph_index = 3420}, /*Unicode: U+0036 (6)*/
|
||||
{.w_px = 13, .glyph_index = 3630}, /*Unicode: U+0037 (7)*/
|
||||
{.w_px = 13, .glyph_index = 3840}, /*Unicode: U+0038 (8)*/
|
||||
{.w_px = 13, .glyph_index = 4050}, /*Unicode: U+0039 (9)*/
|
||||
{.w_px = 3, .glyph_index = 4260}, /*Unicode: U+003a (:)*/
|
||||
{.w_px = 3, .glyph_index = 4320}, /*Unicode: U+003b (;)*/
|
||||
{.w_px = 18, .glyph_index = 4380}, /*Unicode: U+003c (<)*/
|
||||
{.w_px = 16, .glyph_index = 4650}, /*Unicode: U+003d (=)*/
|
||||
{.w_px = 18, .glyph_index = 4890}, /*Unicode: U+003e (>)*/
|
||||
{.w_px = 12, .glyph_index = 5160}, /*Unicode: U+003f (?)*/
|
||||
{.w_px = 18, .glyph_index = 5340}, /*Unicode: U+0040 (@)*/
|
||||
{.w_px = 17, .glyph_index = 5610}, /*Unicode: U+0041 (A)*/
|
||||
{.w_px = 13, .glyph_index = 5880}, /*Unicode: U+0042 (B)*/
|
||||
{.w_px = 15, .glyph_index = 6090}, /*Unicode: U+0043 (C)*/
|
||||
{.w_px = 17, .glyph_index = 6330}, /*Unicode: U+0044 (D)*/
|
||||
{.w_px = 12, .glyph_index = 6600}, /*Unicode: U+0045 (E)*/
|
||||
{.w_px = 11, .glyph_index = 6780}, /*Unicode: U+0046 (F)*/
|
||||
{.w_px = 17, .glyph_index = 6960}, /*Unicode: U+0047 (G)*/
|
||||
{.w_px = 14, .glyph_index = 7230}, /*Unicode: U+0048 (H)*/
|
||||
{.w_px = 3, .glyph_index = 7440}, /*Unicode: U+0049 (I)*/
|
||||
{.w_px = 11, .glyph_index = 7500}, /*Unicode: U+004a (J)*/
|
||||
{.w_px = 14, .glyph_index = 7680}, /*Unicode: U+004b (K)*/
|
||||
{.w_px = 9, .glyph_index = 7890}, /*Unicode: U+004c (L)*/
|
||||
{.w_px = 23, .glyph_index = 8040}, /*Unicode: U+004d (M)*/
|
||||
{.w_px = 16, .glyph_index = 8400}, /*Unicode: U+004e (N)*/
|
||||
{.w_px = 19, .glyph_index = 8640}, /*Unicode: U+004f (O)*/
|
||||
{.w_px = 11, .glyph_index = 8940}, /*Unicode: U+0050 (P)*/
|
||||
{.w_px = 19, .glyph_index = 9120}, /*Unicode: U+0051 (Q)*/
|
||||
{.w_px = 13, .glyph_index = 9420}, /*Unicode: U+0052 (R)*/
|
||||
{.w_px = 12, .glyph_index = 9630}, /*Unicode: U+0053 (S)*/
|
||||
{.w_px = 14, .glyph_index = 9810}, /*Unicode: U+0054 (T)*/
|
||||
{.w_px = 16, .glyph_index = 10020}, /*Unicode: U+0055 (U)*/
|
||||
{.w_px = 18, .glyph_index = 10260}, /*Unicode: U+0056 (V)*/
|
||||
{.w_px = 27, .glyph_index = 10530}, /*Unicode: U+0057 (W)*/
|
||||
{.w_px = 15, .glyph_index = 10950}, /*Unicode: U+0058 (X)*/
|
||||
{.w_px = 15, .glyph_index = 11190}, /*Unicode: U+0059 (Y)*/
|
||||
{.w_px = 15, .glyph_index = 11430}, /*Unicode: U+005a (Z)*/
|
||||
{.w_px = 6, .glyph_index = 11670}, /*Unicode: U+005b ([)*/
|
||||
{.w_px = 11, .glyph_index = 11760}, /*Unicode: U+005c (\)*/
|
||||
{.w_px = 7, .glyph_index = 11940}, /*Unicode: U+005d (])*/
|
||||
{.w_px = 13, .glyph_index = 12060}, /*Unicode: U+005e (^)*/
|
||||
{.w_px = 12, .glyph_index = 12270}, /*Unicode: U+005f (_)*/
|
||||
{.w_px = 6, .glyph_index = 12450}, /*Unicode: U+0060 (`)*/
|
||||
{.w_px = 12, .glyph_index = 12540}, /*Unicode: U+0061 (a)*/
|
||||
{.w_px = 13, .glyph_index = 12720}, /*Unicode: U+0062 (b)*/
|
||||
{.w_px = 11, .glyph_index = 12930}, /*Unicode: U+0063 (c)*/
|
||||
{.w_px = 13, .glyph_index = 13110}, /*Unicode: U+0064 (d)*/
|
||||
{.w_px = 12, .glyph_index = 13320}, /*Unicode: U+0065 (e)*/
|
||||
{.w_px = 6, .glyph_index = 13500}, /*Unicode: U+0066 (f)*/
|
||||
{.w_px = 12, .glyph_index = 13590}, /*Unicode: U+0067 (g)*/
|
||||
{.w_px = 11, .glyph_index = 13770}, /*Unicode: U+0068 (h)*/
|
||||
{.w_px = 3, .glyph_index = 13950}, /*Unicode: U+0069 (i)*/
|
||||
{.w_px = 7, .glyph_index = 14010}, /*Unicode: U+006a (j)*/
|
||||
{.w_px = 12, .glyph_index = 14130}, /*Unicode: U+006b (k)*/
|
||||
{.w_px = 4, .glyph_index = 14310}, /*Unicode: U+006c (l)*/
|
||||
{.w_px = 19, .glyph_index = 14370}, /*Unicode: U+006d (m)*/
|
||||
{.w_px = 11, .glyph_index = 14670}, /*Unicode: U+006e (n)*/
|
||||
{.w_px = 14, .glyph_index = 14850}, /*Unicode: U+006f (o)*/
|
||||
{.w_px = 13, .glyph_index = 15060}, /*Unicode: U+0070 (p)*/
|
||||
{.w_px = 13, .glyph_index = 15270}, /*Unicode: U+0071 (q)*/
|
||||
{.w_px = 7, .glyph_index = 15480}, /*Unicode: U+0072 (r)*/
|
||||
{.w_px = 11, .glyph_index = 15600}, /*Unicode: U+0073 (s)*/
|
||||
{.w_px = 8, .glyph_index = 15780}, /*Unicode: U+0074 (t)*/
|
||||
{.w_px = 11, .glyph_index = 15900}, /*Unicode: U+0075 (u)*/
|
||||
{.w_px = 12, .glyph_index = 16080}, /*Unicode: U+0076 (v)*/
|
||||
{.w_px = 21, .glyph_index = 16260}, /*Unicode: U+0077 (w)*/
|
||||
{.w_px = 13, .glyph_index = 16590}, /*Unicode: U+0078 (x)*/
|
||||
{.w_px = 13, .glyph_index = 16800}, /*Unicode: U+0079 (y)*/
|
||||
{.w_px = 10, .glyph_index = 17010}, /*Unicode: U+007a (z)*/
|
||||
{.w_px = 6, .glyph_index = 17160}, /*Unicode: U+007b ({)*/
|
||||
{.w_px = 3, .glyph_index = 17250}, /*Unicode: U+007c (|)*/
|
||||
{.w_px = 5, .glyph_index = 17310}, /*Unicode: U+007d (})*/
|
||||
{.w_px = 8, .glyph_index = 17400}, /*Unicode: U+007e (~)*/
|
||||
|
||||
#elif USE_INTERUI_30 == 8
|
||||
{.w_px = 8, .glyph_index = 0}, /*Unicode: U+0020 ( )*/
|
||||
{.w_px = 3, .glyph_index = 240}, /*Unicode: U+0021 (!)*/
|
||||
{.w_px = 6, .glyph_index = 330}, /*Unicode: U+0022 (")*/
|
||||
{.w_px = 13, .glyph_index = 510}, /*Unicode: U+0023 (#)*/
|
||||
{.w_px = 12, .glyph_index = 900}, /*Unicode: U+0024 ($)*/
|
||||
{.w_px = 18, .glyph_index = 1260}, /*Unicode: U+0025 (%)*/
|
||||
{.w_px = 16, .glyph_index = 1800}, /*Unicode: U+0026 (&)*/
|
||||
{.w_px = 3, .glyph_index = 2280}, /*Unicode: U+0027 (')*/
|
||||
{.w_px = 6, .glyph_index = 2370}, /*Unicode: U+0028 (()*/
|
||||
{.w_px = 7, .glyph_index = 2550}, /*Unicode: U+0029 ())*/
|
||||
{.w_px = 9, .glyph_index = 2760}, /*Unicode: U+002a (*)*/
|
||||
{.w_px = 16, .glyph_index = 3030}, /*Unicode: U+002b (+)*/
|
||||
{.w_px = 3, .glyph_index = 3510}, /*Unicode: U+002c (,)*/
|
||||
{.w_px = 8, .glyph_index = 3600}, /*Unicode: U+002d (-)*/
|
||||
{.w_px = 3, .glyph_index = 3840}, /*Unicode: U+002e (.)*/
|
||||
{.w_px = 11, .glyph_index = 3930}, /*Unicode: U+002f (/)*/
|
||||
{.w_px = 13, .glyph_index = 4260}, /*Unicode: U+0030 (0)*/
|
||||
{.w_px = 7, .glyph_index = 4650}, /*Unicode: U+0031 (1)*/
|
||||
{.w_px = 13, .glyph_index = 4860}, /*Unicode: U+0032 (2)*/
|
||||
{.w_px = 14, .glyph_index = 5250}, /*Unicode: U+0033 (3)*/
|
||||
{.w_px = 13, .glyph_index = 5670}, /*Unicode: U+0034 (4)*/
|
||||
{.w_px = 14, .glyph_index = 6060}, /*Unicode: U+0035 (5)*/
|
||||
{.w_px = 13, .glyph_index = 6480}, /*Unicode: U+0036 (6)*/
|
||||
{.w_px = 13, .glyph_index = 6870}, /*Unicode: U+0037 (7)*/
|
||||
{.w_px = 13, .glyph_index = 7260}, /*Unicode: U+0038 (8)*/
|
||||
{.w_px = 13, .glyph_index = 7650}, /*Unicode: U+0039 (9)*/
|
||||
{.w_px = 3, .glyph_index = 8040}, /*Unicode: U+003a (:)*/
|
||||
{.w_px = 3, .glyph_index = 8130}, /*Unicode: U+003b (;)*/
|
||||
{.w_px = 18, .glyph_index = 8220}, /*Unicode: U+003c (<)*/
|
||||
{.w_px = 16, .glyph_index = 8760}, /*Unicode: U+003d (=)*/
|
||||
{.w_px = 18, .glyph_index = 9240}, /*Unicode: U+003e (>)*/
|
||||
{.w_px = 12, .glyph_index = 9780}, /*Unicode: U+003f (?)*/
|
||||
{.w_px = 18, .glyph_index = 10140}, /*Unicode: U+0040 (@)*/
|
||||
{.w_px = 17, .glyph_index = 10680}, /*Unicode: U+0041 (A)*/
|
||||
{.w_px = 13, .glyph_index = 11190}, /*Unicode: U+0042 (B)*/
|
||||
{.w_px = 15, .glyph_index = 11580}, /*Unicode: U+0043 (C)*/
|
||||
{.w_px = 17, .glyph_index = 12030}, /*Unicode: U+0044 (D)*/
|
||||
{.w_px = 12, .glyph_index = 12540}, /*Unicode: U+0045 (E)*/
|
||||
{.w_px = 11, .glyph_index = 12900}, /*Unicode: U+0046 (F)*/
|
||||
{.w_px = 17, .glyph_index = 13230}, /*Unicode: U+0047 (G)*/
|
||||
{.w_px = 14, .glyph_index = 13740}, /*Unicode: U+0048 (H)*/
|
||||
{.w_px = 3, .glyph_index = 14160}, /*Unicode: U+0049 (I)*/
|
||||
{.w_px = 11, .glyph_index = 14250}, /*Unicode: U+004a (J)*/
|
||||
{.w_px = 14, .glyph_index = 14580}, /*Unicode: U+004b (K)*/
|
||||
{.w_px = 9, .glyph_index = 15000}, /*Unicode: U+004c (L)*/
|
||||
{.w_px = 23, .glyph_index = 15270}, /*Unicode: U+004d (M)*/
|
||||
{.w_px = 16, .glyph_index = 15960}, /*Unicode: U+004e (N)*/
|
||||
{.w_px = 19, .glyph_index = 16440}, /*Unicode: U+004f (O)*/
|
||||
{.w_px = 11, .glyph_index = 17010}, /*Unicode: U+0050 (P)*/
|
||||
{.w_px = 19, .glyph_index = 17340}, /*Unicode: U+0051 (Q)*/
|
||||
{.w_px = 13, .glyph_index = 17910}, /*Unicode: U+0052 (R)*/
|
||||
{.w_px = 12, .glyph_index = 18300}, /*Unicode: U+0053 (S)*/
|
||||
{.w_px = 14, .glyph_index = 18660}, /*Unicode: U+0054 (T)*/
|
||||
{.w_px = 16, .glyph_index = 19080}, /*Unicode: U+0055 (U)*/
|
||||
{.w_px = 18, .glyph_index = 19560}, /*Unicode: U+0056 (V)*/
|
||||
{.w_px = 27, .glyph_index = 20100}, /*Unicode: U+0057 (W)*/
|
||||
{.w_px = 15, .glyph_index = 20910}, /*Unicode: U+0058 (X)*/
|
||||
{.w_px = 15, .glyph_index = 21360}, /*Unicode: U+0059 (Y)*/
|
||||
{.w_px = 15, .glyph_index = 21810}, /*Unicode: U+005a (Z)*/
|
||||
{.w_px = 6, .glyph_index = 22260}, /*Unicode: U+005b ([)*/
|
||||
{.w_px = 11, .glyph_index = 22440}, /*Unicode: U+005c (\)*/
|
||||
{.w_px = 7, .glyph_index = 22770}, /*Unicode: U+005d (])*/
|
||||
{.w_px = 13, .glyph_index = 22980}, /*Unicode: U+005e (^)*/
|
||||
{.w_px = 12, .glyph_index = 23370}, /*Unicode: U+005f (_)*/
|
||||
{.w_px = 6, .glyph_index = 23730}, /*Unicode: U+0060 (`)*/
|
||||
{.w_px = 12, .glyph_index = 23910}, /*Unicode: U+0061 (a)*/
|
||||
{.w_px = 13, .glyph_index = 24270}, /*Unicode: U+0062 (b)*/
|
||||
{.w_px = 11, .glyph_index = 24660}, /*Unicode: U+0063 (c)*/
|
||||
{.w_px = 13, .glyph_index = 24990}, /*Unicode: U+0064 (d)*/
|
||||
{.w_px = 12, .glyph_index = 25380}, /*Unicode: U+0065 (e)*/
|
||||
{.w_px = 6, .glyph_index = 25740}, /*Unicode: U+0066 (f)*/
|
||||
{.w_px = 12, .glyph_index = 25920}, /*Unicode: U+0067 (g)*/
|
||||
{.w_px = 11, .glyph_index = 26280}, /*Unicode: U+0068 (h)*/
|
||||
{.w_px = 3, .glyph_index = 26610}, /*Unicode: U+0069 (i)*/
|
||||
{.w_px = 7, .glyph_index = 26700}, /*Unicode: U+006a (j)*/
|
||||
{.w_px = 12, .glyph_index = 26910}, /*Unicode: U+006b (k)*/
|
||||
{.w_px = 4, .glyph_index = 27270}, /*Unicode: U+006c (l)*/
|
||||
{.w_px = 19, .glyph_index = 27390}, /*Unicode: U+006d (m)*/
|
||||
{.w_px = 11, .glyph_index = 27960}, /*Unicode: U+006e (n)*/
|
||||
{.w_px = 14, .glyph_index = 28290}, /*Unicode: U+006f (o)*/
|
||||
{.w_px = 13, .glyph_index = 28710}, /*Unicode: U+0070 (p)*/
|
||||
{.w_px = 13, .glyph_index = 29100}, /*Unicode: U+0071 (q)*/
|
||||
{.w_px = 7, .glyph_index = 29490}, /*Unicode: U+0072 (r)*/
|
||||
{.w_px = 11, .glyph_index = 29700}, /*Unicode: U+0073 (s)*/
|
||||
{.w_px = 8, .glyph_index = 30030}, /*Unicode: U+0074 (t)*/
|
||||
{.w_px = 11, .glyph_index = 30270}, /*Unicode: U+0075 (u)*/
|
||||
{.w_px = 12, .glyph_index = 30600}, /*Unicode: U+0076 (v)*/
|
||||
{.w_px = 21, .glyph_index = 30960}, /*Unicode: U+0077 (w)*/
|
||||
{.w_px = 13, .glyph_index = 31590}, /*Unicode: U+0078 (x)*/
|
||||
{.w_px = 13, .glyph_index = 31980}, /*Unicode: U+0079 (y)*/
|
||||
{.w_px = 10, .glyph_index = 32370}, /*Unicode: U+007a (z)*/
|
||||
{.w_px = 6, .glyph_index = 32670}, /*Unicode: U+007b ({)*/
|
||||
{.w_px = 3, .glyph_index = 32850}, /*Unicode: U+007c (|)*/
|
||||
{.w_px = 5, .glyph_index = 32940}, /*Unicode: U+007d (})*/
|
||||
{.w_px = 8, .glyph_index = 33090}, /*Unicode: U+007e (~)*/
|
||||
|
||||
#endif
|
||||
};
|
||||
|
||||
lv_font_t interui_30 =
|
||||
{
|
||||
.unicode_first = 32, /*First Unicode letter in this font*/
|
||||
.unicode_last = 126, /*Last Unicode letter in this font*/
|
||||
.h_px = 30, /*Font height in pixels*/
|
||||
//.glyph_bitmap = interui_30_glyph_bitmap, /*Bitmap of glyphs*/
|
||||
.glyph_bitmap = (const uint8_t *)(NYX_RES_ADDR + 0x7900),
|
||||
.glyph_dsc = interui_30_glyph_dsc, /*Description of glyphs*/
|
||||
.glyph_cnt = 95, /*Number of glyphs in the font*/
|
||||
.unicode_list = NULL, /*Every character in the font from 'unicode_first' to 'unicode_last'*/
|
||||
.get_bitmap = lv_font_get_bitmap_continuous, /*Function pointer to get glyph's bitmap*/
|
||||
.get_width = lv_font_get_width_continuous, /*Function pointer to get glyph's width*/
|
||||
#if USE_INTERUI_30 == 4
|
||||
.bpp = 4, /*Bit per pixel*/
|
||||
#elif USE_INTERUI_30 == 8
|
||||
.bpp = 8, /*Bit per pixel*/
|
||||
#endif
|
||||
.monospace = 0, /*Fix width (0: if not used)*/
|
||||
.next_page = NULL, /*Pointer to a font extension*/
|
||||
};
|
||||
|
||||
#endif /*USE_INTERUI_30*/
|
100
bdk/libs/lvgl/lv_fonts/lv_font_builtin.c
Normal file
100
bdk/libs/lvgl/lv_fonts/lv_font_builtin.c
Normal file
|
@ -0,0 +1,100 @@
|
|||
/*
|
||||
* Copyright (c) 2019 CTCaer
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file lv_font_built_in.c
|
||||
*
|
||||
*/
|
||||
|
||||
/*********************
|
||||
* INCLUDES
|
||||
*********************/
|
||||
#include "lv_font_builtin.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
*********************/
|
||||
|
||||
/**********************
|
||||
* TYPEDEFS
|
||||
**********************/
|
||||
|
||||
/**********************
|
||||
* STATIC PROTOTYPES
|
||||
**********************/
|
||||
|
||||
/**********************
|
||||
* STATIC VARIABLES
|
||||
**********************/
|
||||
|
||||
/**********************
|
||||
* MACROS
|
||||
**********************/
|
||||
|
||||
/**********************
|
||||
* GLOBAL FUNCTIONS
|
||||
**********************/
|
||||
|
||||
/**
|
||||
* Initialize the built-in fonts
|
||||
*/
|
||||
void lv_font_builtin_init(void)
|
||||
{
|
||||
/*InterUI 20*/
|
||||
#if USE_INTERUI_20 != 0
|
||||
lv_font_add(&interui_20, NULL);
|
||||
#endif
|
||||
|
||||
/*SYMBOL 20*/
|
||||
#if USE_HEKATE_SYMBOL_20 != 0
|
||||
#if USE_INTERUI_20 != 0
|
||||
lv_font_add(&hekate_symbol_20, &interui_20);
|
||||
#else
|
||||
lv_font_add(&hekate_symbol_20, NULL);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*InterUI 30*/
|
||||
#if USE_INTERUI_30 != 0
|
||||
lv_font_add(&interui_30, NULL);
|
||||
#endif
|
||||
|
||||
/*SYMBOL 30*/
|
||||
#if USE_HEKATE_SYMBOL_30 != 0
|
||||
#if USE_INTERUI_30 != 0
|
||||
lv_font_add(&hekate_symbol_30, &interui_30);
|
||||
#else
|
||||
lv_font_add(&hekate_symbol_30, NULL);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*MONO 12*/
|
||||
#if USE_UBUNTU_MONO != 0
|
||||
lv_font_add(&ubuntu_mono, NULL);
|
||||
#if USE_INTERUI_20 != 0
|
||||
lv_font_add(&hekate_symbol_20, &ubuntu_mono);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*Symbol 120*/
|
||||
#if USE_HEKATE_SYMBOL_120 != 0
|
||||
lv_font_add(&hekate_symbol_120, NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**********************
|
||||
* STATIC FUNCTIONS
|
||||
**********************/
|
95
bdk/libs/lvgl/lv_fonts/lv_font_builtin.h
Normal file
95
bdk/libs/lvgl/lv_fonts/lv_font_builtin.h
Normal file
|
@ -0,0 +1,95 @@
|
|||
/*
|
||||
* Copyright (c) 2019 CTCaer
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file lv_font_builtin.h
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LV_FONT_BUILTIN_H
|
||||
#define LV_FONT_BUILTIN_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*********************
|
||||
* INCLUDES
|
||||
*********************/
|
||||
#ifdef LV_CONF_INCLUDE_SIMPLE
|
||||
#include "lv_conf.h"
|
||||
#else
|
||||
#include "../../lv_conf.h"
|
||||
#endif
|
||||
|
||||
#include "../lv_misc/lv_font.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
*********************/
|
||||
|
||||
/**********************
|
||||
* TYPEDEFS
|
||||
**********************/
|
||||
|
||||
/**********************
|
||||
* GLOBAL PROTOTYPES
|
||||
**********************/
|
||||
|
||||
/**
|
||||
* Initialize the built-in fonts
|
||||
*/
|
||||
void lv_font_builtin_init(void);
|
||||
|
||||
/**********************
|
||||
* MACROS
|
||||
**********************/
|
||||
|
||||
/**********************
|
||||
* FONT DECLARATIONS
|
||||
**********************/
|
||||
|
||||
/*20 px */
|
||||
#if USE_INTERUI_20
|
||||
LV_FONT_DECLARE(interui_20);
|
||||
#endif
|
||||
|
||||
#if USE_HEKATE_SYMBOL_20
|
||||
LV_FONT_DECLARE(hekate_symbol_20);
|
||||
#endif
|
||||
|
||||
/*30 px */
|
||||
#if USE_INTERUI_30
|
||||
LV_FONT_DECLARE(interui_30);
|
||||
#endif
|
||||
|
||||
#if USE_HEKATE_SYMBOL_30
|
||||
LV_FONT_DECLARE(hekate_symbol_30);
|
||||
#endif
|
||||
|
||||
#if USE_UBUNTU_MONO
|
||||
LV_FONT_DECLARE(ubuntu_mono);
|
||||
#endif
|
||||
|
||||
#if USE_HEKATE_SYMBOL_120
|
||||
LV_FONT_DECLARE(hekate_symbol_120);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif /*LV_FONT_BUILTIN_H*/
|
14
bdk/libs/lvgl/lv_fonts/lv_fonts.mk
Normal file
14
bdk/libs/lvgl/lv_fonts/lv_fonts.mk
Normal file
|
@ -0,0 +1,14 @@
|
|||
CSRCS += lv_font_builtin.c
|
||||
CSRCS += hekate_symbol_10.c
|
||||
CSRCS += hekate_symbol_20.c
|
||||
CSRCS += hekate_symbol_30.c
|
||||
CSRCS += hekate_symbol_40.c
|
||||
CSRCS += interui_12.c
|
||||
CSRCS += interui_20.c
|
||||
CSRCS += interui_30.c
|
||||
CSRCS += interui_40.c
|
||||
|
||||
DEPPATH += --dep-path $(LVGL_DIR)/lvgl/lv_fonts
|
||||
VPATH += :$(LVGL_DIR)/lvgl/lv_fonts
|
||||
|
||||
CFLAGS += "-I$(LVGL_DIR)/lvgl/lv_fonts"
|
248
bdk/libs/lvgl/lv_fonts/ubuntu_mono.c
Normal file
248
bdk/libs/lvgl/lv_fonts/ubuntu_mono.c
Normal file
|
@ -0,0 +1,248 @@
|
|||
/*
|
||||
* Copyright (c) 2019 CTCaer
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "../lv_misc/lv_font.h"
|
||||
|
||||
#include <memory_map.h>
|
||||
|
||||
#if USE_UBUNTU_MONO != 0 /*Can be enabled in lv_conf.h*/
|
||||
|
||||
/***********************************************************************************
|
||||
* UbuntuMono-B.ttf 20 px Font in U+0020 ( ) .. U+007e (~) range with all bpp
|
||||
***********************************************************************************/
|
||||
|
||||
/*Store the glyph descriptions*/
|
||||
static const lv_font_glyph_dsc_t ubuntu_mono_glyph_dsc[] =
|
||||
{
|
||||
#if USE_UBUNTU_MONO == 4
|
||||
{.w_px = 6, .glyph_index = 0}, /*Unicode: U+0020 ( )*/
|
||||
{.w_px = 2, .glyph_index = 60}, /*Unicode: U+0021 (!)*/
|
||||
{.w_px = 5, .glyph_index = 80}, /*Unicode: U+0022 (")*/
|
||||
{.w_px = 10, .glyph_index = 140}, /*Unicode: U+0023 (#)*/
|
||||
{.w_px = 8, .glyph_index = 240}, /*Unicode: U+0024 ($)*/
|
||||
{.w_px = 10, .glyph_index = 320}, /*Unicode: U+0025 (%)*/
|
||||
{.w_px = 10, .glyph_index = 420}, /*Unicode: U+0026 (&)*/
|
||||
{.w_px = 2, .glyph_index = 520}, /*Unicode: U+0027 (')*/
|
||||
{.w_px = 6, .glyph_index = 540}, /*Unicode: U+0028 (()*/
|
||||
{.w_px = 6, .glyph_index = 600}, /*Unicode: U+0029 ())*/
|
||||
{.w_px = 9, .glyph_index = 660}, /*Unicode: U+002a (*)*/
|
||||
{.w_px = 8, .glyph_index = 760}, /*Unicode: U+002b (+)*/
|
||||
{.w_px = 4, .glyph_index = 840}, /*Unicode: U+002c (,)*/
|
||||
{.w_px = 5, .glyph_index = 880}, /*Unicode: U+002d (-)*/
|
||||
{.w_px = 4, .glyph_index = 940}, /*Unicode: U+002e (.)*/
|
||||
{.w_px = 8, .glyph_index = 980}, /*Unicode: U+002f (/)*/
|
||||
{.w_px = 8, .glyph_index = 1060}, /*Unicode: U+0030 (0)*/
|
||||
{.w_px = 7, .glyph_index = 1140}, /*Unicode: U+0031 (1)*/
|
||||
{.w_px = 8, .glyph_index = 1220}, /*Unicode: U+0032 (2)*/
|
||||
{.w_px = 8, .glyph_index = 1300}, /*Unicode: U+0033 (3)*/
|
||||
{.w_px = 8, .glyph_index = 1380}, /*Unicode: U+0034 (4)*/
|
||||
{.w_px = 8, .glyph_index = 1460}, /*Unicode: U+0035 (5)*/
|
||||
{.w_px = 8, .glyph_index = 1540}, /*Unicode: U+0036 (6)*/
|
||||
{.w_px = 7, .glyph_index = 1620}, /*Unicode: U+0037 (7)*/
|
||||
{.w_px = 8, .glyph_index = 1700}, /*Unicode: U+0038 (8)*/
|
||||
{.w_px = 8, .glyph_index = 1780}, /*Unicode: U+0039 (9)*/
|
||||
{.w_px = 4, .glyph_index = 1860}, /*Unicode: U+003a (:)*/
|
||||
{.w_px = 4, .glyph_index = 1900}, /*Unicode: U+003b (;)*/
|
||||
{.w_px = 9, .glyph_index = 1940}, /*Unicode: U+003c (<)*/
|
||||
{.w_px = 8, .glyph_index = 2040}, /*Unicode: U+003d (=)*/
|
||||
{.w_px = 8, .glyph_index = 2120}, /*Unicode: U+003e (>)*/
|
||||
{.w_px = 8, .glyph_index = 2200}, /*Unicode: U+003f (?)*/
|
||||
{.w_px = 9, .glyph_index = 2280}, /*Unicode: U+0040 (@)*/
|
||||
{.w_px = 10, .glyph_index = 2380}, /*Unicode: U+0041 (A)*/
|
||||
{.w_px = 8, .glyph_index = 2480}, /*Unicode: U+0042 (B)*/
|
||||
{.w_px = 8, .glyph_index = 2560}, /*Unicode: U+0043 (C)*/
|
||||
{.w_px = 8, .glyph_index = 2640}, /*Unicode: U+0044 (D)*/
|
||||
{.w_px = 8, .glyph_index = 2720}, /*Unicode: U+0045 (E)*/
|
||||
{.w_px = 8, .glyph_index = 2800}, /*Unicode: U+0046 (F)*/
|
||||
{.w_px = 8, .glyph_index = 2880}, /*Unicode: U+0047 (G)*/
|
||||
{.w_px = 8, .glyph_index = 2960}, /*Unicode: U+0048 (H)*/
|
||||
{.w_px = 8, .glyph_index = 3040}, /*Unicode: U+0049 (I)*/
|
||||
{.w_px = 8, .glyph_index = 3120}, /*Unicode: U+004a (J)*/
|
||||
{.w_px = 9, .glyph_index = 3200}, /*Unicode: U+004b (K)*/
|
||||
{.w_px = 8, .glyph_index = 3300}, /*Unicode: U+004c (L)*/
|
||||
{.w_px = 9, .glyph_index = 3380}, /*Unicode: U+004d (M)*/
|
||||
{.w_px = 8, .glyph_index = 3480}, /*Unicode: U+004e (N)*/
|
||||
{.w_px = 8, .glyph_index = 3560}, /*Unicode: U+004f (O)*/
|
||||
{.w_px = 8, .glyph_index = 3640}, /*Unicode: U+0050 (P)*/
|
||||
{.w_px = 8, .glyph_index = 3720}, /*Unicode: U+0051 (Q)*/
|
||||
{.w_px = 8, .glyph_index = 3800}, /*Unicode: U+0052 (R)*/
|
||||
{.w_px = 8, .glyph_index = 3880}, /*Unicode: U+0053 (S)*/
|
||||
{.w_px = 8, .glyph_index = 3960}, /*Unicode: U+0054 (T)*/
|
||||
{.w_px = 8, .glyph_index = 4040}, /*Unicode: U+0055 (U)*/
|
||||
{.w_px = 9, .glyph_index = 4120}, /*Unicode: U+0056 (V)*/
|
||||
{.w_px = 9, .glyph_index = 4220}, /*Unicode: U+0057 (W)*/
|
||||
{.w_px = 10, .glyph_index = 4320}, /*Unicode: U+0058 (X)*/
|
||||
{.w_px = 10, .glyph_index = 4420}, /*Unicode: U+0059 (Y)*/
|
||||
{.w_px = 8, .glyph_index = 4520}, /*Unicode: U+005a (Z)*/
|
||||
{.w_px = 6, .glyph_index = 4600}, /*Unicode: U+005b ([)*/
|
||||
{.w_px = 8, .glyph_index = 4660}, /*Unicode: U+005c (\)*/
|
||||
{.w_px = 6, .glyph_index = 4740}, /*Unicode: U+005d (])*/
|
||||
{.w_px = 10, .glyph_index = 4800}, /*Unicode: U+005e (^)*/
|
||||
{.w_px = 10, .glyph_index = 4900}, /*Unicode: U+005f (_)*/
|
||||
{.w_px = 4, .glyph_index = 5000}, /*Unicode: U+0060 (`)*/
|
||||
{.w_px = 8, .glyph_index = 5040}, /*Unicode: U+0061 (a)*/
|
||||
{.w_px = 8, .glyph_index = 5120}, /*Unicode: U+0062 (b)*/
|
||||
{.w_px = 8, .glyph_index = 5200}, /*Unicode: U+0063 (c)*/
|
||||
{.w_px = 8, .glyph_index = 5280}, /*Unicode: U+0064 (d)*/
|
||||
{.w_px = 9, .glyph_index = 5360}, /*Unicode: U+0065 (e)*/
|
||||
{.w_px = 9, .glyph_index = 5460}, /*Unicode: U+0066 (f)*/
|
||||
{.w_px = 8, .glyph_index = 5560}, /*Unicode: U+0067 (g)*/
|
||||
{.w_px = 8, .glyph_index = 5640}, /*Unicode: U+0068 (h)*/
|
||||
{.w_px = 9, .glyph_index = 5720}, /*Unicode: U+0069 (i)*/
|
||||
{.w_px = 7, .glyph_index = 5820}, /*Unicode: U+006a (j)*/
|
||||
{.w_px = 9, .glyph_index = 5900}, /*Unicode: U+006b (k)*/
|
||||
{.w_px = 8, .glyph_index = 6000}, /*Unicode: U+006c (l)*/
|
||||
{.w_px = 8, .glyph_index = 6080}, /*Unicode: U+006d (m)*/
|
||||
{.w_px = 8, .glyph_index = 6160}, /*Unicode: U+006e (n)*/
|
||||
{.w_px = 8, .glyph_index = 6240}, /*Unicode: U+006f (o)*/
|
||||
{.w_px = 8, .glyph_index = 6320}, /*Unicode: U+0070 (p)*/
|
||||
{.w_px = 8, .glyph_index = 6400}, /*Unicode: U+0071 (q)*/
|
||||
{.w_px = 7, .glyph_index = 6480}, /*Unicode: U+0072 (r)*/
|
||||
{.w_px = 8, .glyph_index = 6560}, /*Unicode: U+0073 (s)*/
|
||||
{.w_px = 8, .glyph_index = 6640}, /*Unicode: U+0074 (t)*/
|
||||
{.w_px = 8, .glyph_index = 6720}, /*Unicode: U+0075 (u)*/
|
||||
{.w_px = 9, .glyph_index = 6800}, /*Unicode: U+0076 (v)*/
|
||||
{.w_px = 10, .glyph_index = 6900}, /*Unicode: U+0077 (w)*/
|
||||
{.w_px = 10, .glyph_index = 7000}, /*Unicode: U+0078 (x)*/
|
||||
{.w_px = 9, .glyph_index = 7100}, /*Unicode: U+0079 (y)*/
|
||||
{.w_px = 8, .glyph_index = 7200}, /*Unicode: U+007a (z)*/
|
||||
{.w_px = 7, .glyph_index = 7280}, /*Unicode: U+007b ({)*/
|
||||
{.w_px = 2, .glyph_index = 7360}, /*Unicode: U+007c (|)*/
|
||||
{.w_px = 8, .glyph_index = 7380}, /*Unicode: U+007d (})*/
|
||||
{.w_px = 9, .glyph_index = 7460}, /*Unicode: U+007e (~)*/
|
||||
|
||||
#elif USE_UBUNTU_MONO == 8
|
||||
{.w_px = 6, .glyph_index = 0}, /*Unicode: U+0020 ( )*/
|
||||
{.w_px = 2, .glyph_index = 120}, /*Unicode: U+0021 (!)*/
|
||||
{.w_px = 5, .glyph_index = 160}, /*Unicode: U+0022 (")*/
|
||||
{.w_px = 10, .glyph_index = 260}, /*Unicode: U+0023 (#)*/
|
||||
{.w_px = 8, .glyph_index = 460}, /*Unicode: U+0024 ($)*/
|
||||
{.w_px = 10, .glyph_index = 620}, /*Unicode: U+0025 (%)*/
|
||||
{.w_px = 10, .glyph_index = 820}, /*Unicode: U+0026 (&)*/
|
||||
{.w_px = 2, .glyph_index = 1020}, /*Unicode: U+0027 (')*/
|
||||
{.w_px = 6, .glyph_index = 1060}, /*Unicode: U+0028 (()*/
|
||||
{.w_px = 6, .glyph_index = 1180}, /*Unicode: U+0029 ())*/
|
||||
{.w_px = 9, .glyph_index = 1300}, /*Unicode: U+002a (*)*/
|
||||
{.w_px = 8, .glyph_index = 1480}, /*Unicode: U+002b (+)*/
|
||||
{.w_px = 4, .glyph_index = 1640}, /*Unicode: U+002c (,)*/
|
||||
{.w_px = 5, .glyph_index = 1720}, /*Unicode: U+002d (-)*/
|
||||
{.w_px = 4, .glyph_index = 1820}, /*Unicode: U+002e (.)*/
|
||||
{.w_px = 8, .glyph_index = 1900}, /*Unicode: U+002f (/)*/
|
||||
{.w_px = 8, .glyph_index = 2060}, /*Unicode: U+0030 (0)*/
|
||||
{.w_px = 7, .glyph_index = 2220}, /*Unicode: U+0031 (1)*/
|
||||
{.w_px = 8, .glyph_index = 2360}, /*Unicode: U+0032 (2)*/
|
||||
{.w_px = 8, .glyph_index = 2520}, /*Unicode: U+0033 (3)*/
|
||||
{.w_px = 8, .glyph_index = 2680}, /*Unicode: U+0034 (4)*/
|
||||
{.w_px = 8, .glyph_index = 2840}, /*Unicode: U+0035 (5)*/
|
||||
{.w_px = 8, .glyph_index = 3000}, /*Unicode: U+0036 (6)*/
|
||||
{.w_px = 7, .glyph_index = 3160}, /*Unicode: U+0037 (7)*/
|
||||
{.w_px = 8, .glyph_index = 3300}, /*Unicode: U+0038 (8)*/
|
||||
{.w_px = 8, .glyph_index = 3460}, /*Unicode: U+0039 (9)*/
|
||||
{.w_px = 4, .glyph_index = 3620}, /*Unicode: U+003a (:)*/
|
||||
{.w_px = 4, .glyph_index = 3700}, /*Unicode: U+003b (;)*/
|
||||
{.w_px = 9, .glyph_index = 3780}, /*Unicode: U+003c (<)*/
|
||||
{.w_px = 8, .glyph_index = 3960}, /*Unicode: U+003d (=)*/
|
||||
{.w_px = 8, .glyph_index = 4120}, /*Unicode: U+003e (>)*/
|
||||
{.w_px = 8, .glyph_index = 4280}, /*Unicode: U+003f (?)*/
|
||||
{.w_px = 9, .glyph_index = 4440}, /*Unicode: U+0040 (@)*/
|
||||
{.w_px = 10, .glyph_index = 4620}, /*Unicode: U+0041 (A)*/
|
||||
{.w_px = 8, .glyph_index = 4820}, /*Unicode: U+0042 (B)*/
|
||||
{.w_px = 8, .glyph_index = 4980}, /*Unicode: U+0043 (C)*/
|
||||
{.w_px = 8, .glyph_index = 5140}, /*Unicode: U+0044 (D)*/
|
||||
{.w_px = 8, .glyph_index = 5300}, /*Unicode: U+0045 (E)*/
|
||||
{.w_px = 8, .glyph_index = 5460}, /*Unicode: U+0046 (F)*/
|
||||
{.w_px = 8, .glyph_index = 5620}, /*Unicode: U+0047 (G)*/
|
||||
{.w_px = 8, .glyph_index = 5780}, /*Unicode: U+0048 (H)*/
|
||||
{.w_px = 8, .glyph_index = 5940}, /*Unicode: U+0049 (I)*/
|
||||
{.w_px = 8, .glyph_index = 6100}, /*Unicode: U+004a (J)*/
|
||||
{.w_px = 9, .glyph_index = 6260}, /*Unicode: U+004b (K)*/
|
||||
{.w_px = 8, .glyph_index = 6440}, /*Unicode: U+004c (L)*/
|
||||
{.w_px = 9, .glyph_index = 6600}, /*Unicode: U+004d (M)*/
|
||||
{.w_px = 8, .glyph_index = 6780}, /*Unicode: U+004e (N)*/
|
||||
{.w_px = 8, .glyph_index = 6940}, /*Unicode: U+004f (O)*/
|
||||
{.w_px = 8, .glyph_index = 7100}, /*Unicode: U+0050 (P)*/
|
||||
{.w_px = 8, .glyph_index = 7260}, /*Unicode: U+0051 (Q)*/
|
||||
{.w_px = 8, .glyph_index = 7420}, /*Unicode: U+0052 (R)*/
|
||||
{.w_px = 8, .glyph_index = 7580}, /*Unicode: U+0053 (S)*/
|
||||
{.w_px = 8, .glyph_index = 7740}, /*Unicode: U+0054 (T)*/
|
||||
{.w_px = 8, .glyph_index = 7900}, /*Unicode: U+0055 (U)*/
|
||||
{.w_px = 9, .glyph_index = 8060}, /*Unicode: U+0056 (V)*/
|
||||
{.w_px = 9, .glyph_index = 8240}, /*Unicode: U+0057 (W)*/
|
||||
{.w_px = 10, .glyph_index = 8420}, /*Unicode: U+0058 (X)*/
|
||||
{.w_px = 10, .glyph_index = 8620}, /*Unicode: U+0059 (Y)*/
|
||||
{.w_px = 8, .glyph_index = 8820}, /*Unicode: U+005a (Z)*/
|
||||
{.w_px = 6, .glyph_index = 8980}, /*Unicode: U+005b ([)*/
|
||||
{.w_px = 8, .glyph_index = 9100}, /*Unicode: U+005c (\)*/
|
||||
{.w_px = 6, .glyph_index = 9260}, /*Unicode: U+005d (])*/
|
||||
{.w_px = 10, .glyph_index = 9380}, /*Unicode: U+005e (^)*/
|
||||
{.w_px = 10, .glyph_index = 9580}, /*Unicode: U+005f (_)*/
|
||||
{.w_px = 4, .glyph_index = 9780}, /*Unicode: U+0060 (`)*/
|
||||
{.w_px = 8, .glyph_index = 9860}, /*Unicode: U+0061 (a)*/
|
||||
{.w_px = 8, .glyph_index = 10020}, /*Unicode: U+0062 (b)*/
|
||||
{.w_px = 8, .glyph_index = 10180}, /*Unicode: U+0063 (c)*/
|
||||
{.w_px = 8, .glyph_index = 10340}, /*Unicode: U+0064 (d)*/
|
||||
{.w_px = 9, .glyph_index = 10500}, /*Unicode: U+0065 (e)*/
|
||||
{.w_px = 9, .glyph_index = 10680}, /*Unicode: U+0066 (f)*/
|
||||
{.w_px = 8, .glyph_index = 10860}, /*Unicode: U+0067 (g)*/
|
||||
{.w_px = 8, .glyph_index = 11020}, /*Unicode: U+0068 (h)*/
|
||||
{.w_px = 9, .glyph_index = 11180}, /*Unicode: U+0069 (i)*/
|
||||
{.w_px = 7, .glyph_index = 11360}, /*Unicode: U+006a (j)*/
|
||||
{.w_px = 9, .glyph_index = 11500}, /*Unicode: U+006b (k)*/
|
||||
{.w_px = 8, .glyph_index = 11680}, /*Unicode: U+006c (l)*/
|
||||
{.w_px = 8, .glyph_index = 11840}, /*Unicode: U+006d (m)*/
|
||||
{.w_px = 8, .glyph_index = 12000}, /*Unicode: U+006e (n)*/
|
||||
{.w_px = 8, .glyph_index = 12160}, /*Unicode: U+006f (o)*/
|
||||
{.w_px = 8, .glyph_index = 12320}, /*Unicode: U+0070 (p)*/
|
||||
{.w_px = 8, .glyph_index = 12480}, /*Unicode: U+0071 (q)*/
|
||||
{.w_px = 7, .glyph_index = 12640}, /*Unicode: U+0072 (r)*/
|
||||
{.w_px = 8, .glyph_index = 12780}, /*Unicode: U+0073 (s)*/
|
||||
{.w_px = 8, .glyph_index = 12940}, /*Unicode: U+0074 (t)*/
|
||||
{.w_px = 8, .glyph_index = 13100}, /*Unicode: U+0075 (u)*/
|
||||
{.w_px = 9, .glyph_index = 13260}, /*Unicode: U+0076 (v)*/
|
||||
{.w_px = 10, .glyph_index = 13440}, /*Unicode: U+0077 (w)*/
|
||||
{.w_px = 10, .glyph_index = 13640}, /*Unicode: U+0078 (x)*/
|
||||
{.w_px = 9, .glyph_index = 13840}, /*Unicode: U+0079 (y)*/
|
||||
{.w_px = 8, .glyph_index = 14020}, /*Unicode: U+007a (z)*/
|
||||
{.w_px = 7, .glyph_index = 14180}, /*Unicode: U+007b ({)*/
|
||||
{.w_px = 2, .glyph_index = 14320}, /*Unicode: U+007c (|)*/
|
||||
{.w_px = 8, .glyph_index = 14360}, /*Unicode: U+007d (})*/
|
||||
{.w_px = 9, .glyph_index = 14520}, /*Unicode: U+007e (~)*/
|
||||
|
||||
#endif
|
||||
};
|
||||
|
||||
lv_font_t ubuntu_mono =
|
||||
{
|
||||
.unicode_first = 32, /*First Unicode letter in this font*/
|
||||
.unicode_last = 126, /*Last Unicode letter in this font*/
|
||||
.h_px = 20, /*Font height in pixels*/
|
||||
//.glyph_bitmap = ubuntu_mono_glyph_bitmap, /*Bitmap of glyphs*/
|
||||
.glyph_bitmap = (const uint8_t *)(NYX_RES_ADDR),
|
||||
.glyph_dsc = ubuntu_mono_glyph_dsc, /*Description of glyphs*/
|
||||
.glyph_cnt = 95, /*Number of glyphs in the font*/
|
||||
.unicode_list = NULL, /*Every character in the font from 'unicode_first' to 'unicode_last'*/
|
||||
.get_bitmap = lv_font_get_bitmap_continuous, /*Function pointer to get glyph's bitmap*/
|
||||
.get_width = lv_font_get_width_continuous, /*Function pointer to get glyph's width*/
|
||||
#if USE_UBUNTU_MONO == 4
|
||||
.bpp = 4, /*Bit per pixel*/
|
||||
#elif USE_UBUNTU_MONO == 8
|
||||
.bpp = 8, /*Bit per pixel*/
|
||||
#endif
|
||||
.monospace = 10, /*Fix width (0: if not used)*/
|
||||
.next_page = NULL, /*Pointer to a font extension*/
|
||||
};
|
||||
|
||||
#endif /*USE_UBUNTU_MONO*/
|
Loading…
Add table
Add a link
Reference in a new issue