feat(tests): add draw 8bpp font test (#7895)

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
VIFEX
2025-03-10 10:58:47 +08:00
committed by GitHub
parent 850426b793
commit ed1ff5bda6
11 changed files with 2104 additions and 0 deletions
+1
View File
@@ -296,6 +296,7 @@ add_library(test_common
src/test_assets/test_font_montserrat_ascii_1bpp.c
src/test_assets/test_font_montserrat_ascii_2bpp.c
src/test_assets/test_font_montserrat_ascii_4bpp.c
src/test_assets/test_font_montserrat_ascii_8bpp.c
src/test_assets/test_font_montserrat_ascii_3bpp_compressed.c
src/test_assets/test_font_1_bin.c
src/test_assets/test_font_2_bin.c
Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 19 KiB

File diff suppressed because it is too large Load Diff
@@ -33,11 +33,13 @@ static void all_labels_create(const char * name, lv_style_t * style)
LV_FONT_DECLARE(test_font_montserrat_ascii_1bpp);
LV_FONT_DECLARE(test_font_montserrat_ascii_2bpp);
LV_FONT_DECLARE(test_font_montserrat_ascii_4bpp);
LV_FONT_DECLARE(test_font_montserrat_ascii_8bpp);
LV_FONT_DECLARE(test_font_montserrat_ascii_3bpp_compressed);
label_create(&test_font_montserrat_ascii_1bpp, style, "1bpp font");
label_create(&test_font_montserrat_ascii_2bpp, style, "2bpp font");
label_create(&test_font_montserrat_ascii_4bpp, style, "4bpp font");
label_create(&test_font_montserrat_ascii_8bpp, style, "8bpp font");
label_create(&test_font_montserrat_ascii_3bpp_compressed, style, "3bpp compressed font");
char buf[64];