fix font laoder supprt LV_FONT_FMT_TXT_LARGE

This commit is contained in:
Gabor Kiss-Vamosi
2020-09-21 11:57:20 +02:00
parent d547d8afe1
commit 1067d04c03
3 changed files with 5 additions and 4 deletions

View File

@@ -28,7 +28,7 @@
* STATIC PROTOTYPES
**********************/
#if LV_USE_FILESYSTEM && LV_FONT_FMT_TXT_LARGE == 0
#if LV_USE_FILESYSTEM
static int compare_fonts(lv_font_t * f1, lv_font_t * f2);
#endif
@@ -50,7 +50,7 @@ extern lv_font_t font_3;
void lv_test_font_loader(void)
{
#if LV_USE_FILESYSTEM && LV_FONT_FMT_TXT_LARGE == 0
#if LV_USE_FILESYSTEM
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");
@@ -67,7 +67,7 @@ void lv_test_font_loader(void)
#endif
}
#if LV_USE_FILESYSTEM && LV_FONT_FMT_TXT_LARGE == 0
#if LV_USE_FILESYSTEM
static int compare_fonts(lv_font_t * f1, lv_font_t * f2)
{
lv_test_assert_true(f1 != NULL && f2 != NULL, "font not null");