fix(font): load_glyph calculate the wrong size(one byte short) of last glyph (#2042)

* fix(font): load_glyph calculate the wrong size(one byte short) of last glyph

* Print the banner before running the font test
This commit is contained in:
Xiang Xiao
2021-02-01 03:09:16 -08:00
committed by GitHub
parent 5e8d053adf
commit ced4f2a61f
3 changed files with 13 additions and 4 deletions

View File

@@ -51,6 +51,11 @@ extern lv_font_t font_3;
void lv_test_font_loader(void)
{
#if LV_USE_FILESYSTEM
lv_test_print("");
lv_test_print("===================");
lv_test_print("Start lv_font tests");
lv_test_print("===================");
lv_font_t * font_1_bin = lv_font_load("f:font_1.fnt");
lv_font_t * font_2_bin = lv_font_load("f:font_2.fnt");
lv_font_t * font_3_bin = lv_font_load("f:font_3.fnt");

View File

@@ -1,5 +1,5 @@
/**
* @file lv_font_loader.h
* @file lv_test_font_loader.h
*
*/