From 4dd0a34cd67b054a2a7e4caf9fdec3786a0c8656 Mon Sep 17 00:00:00 2001 From: fvanroie Date: Tue, 26 Apr 2022 14:14:26 +0200 Subject: [PATCH] Tweak LVGL_FREETYPE_MAX_FACES and LVGL_FREETYPE_MAX_SIZES --- user_setups/esp32/_esp32.ini | 5 +++-- user_setups/esp32s2/_esp32s2.ini | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/user_setups/esp32/_esp32.ini b/user_setups/esp32/_esp32.ini index 03d03e1c..004f276f 100644 --- a/user_setups/esp32/_esp32.ini +++ b/user_setups/esp32/_esp32.ini @@ -38,10 +38,11 @@ build_flags = ; -- FreeType build options ------------------------ -D HASP_USE_FREETYPE=1 -D LV_USE_FT_CACHE_MANAGER=1 ; crashes without cache - -D LVGL_FREETYPE_MAX_FACES=64 ; max number of FreeType faces in cache - -D LVGL_FREETYPE_MAX_SIZES=4 ; max number of sizes in cache + -D LVGL_FREETYPE_MAX_FACES=16 ; max number of FreeType faces in cache + -D LVGL_FREETYPE_MAX_SIZES=16 ; max number of sizes in cache -D LVGL_FREETYPE_MAX_BYTES=16384 ; max bytes in cache -D LVGL_FREETYPE_MAX_BYTES_PSRAM=131072 ; max bytes in cache when using PSRAM + -D FT_DEBUG_MEMORY ; -- SimpleFTpServer build options ----------------- -D HASP_USE_FTP=1 -D FTP_SERVER_DEBUG diff --git a/user_setups/esp32s2/_esp32s2.ini b/user_setups/esp32s2/_esp32s2.ini index c6bd17ea..132ee9db 100644 --- a/user_setups/esp32s2/_esp32s2.ini +++ b/user_setups/esp32s2/_esp32s2.ini @@ -51,8 +51,8 @@ build_flags = ; -- FreeType build options ------------------------ -D HASP_USE_FREETYPE=1 -D LV_USE_FT_CACHE_MANAGER=1 ; crashes without cache - -D LVGL_FREETYPE_MAX_FACES=64 ; max number of FreeType faces in cache - -D LVGL_FREETYPE_MAX_SIZES=4 ; max number of sizes in cache + -D LVGL_FREETYPE_MAX_FACES=8 ; max number of FreeType faces in cache + -D LVGL_FREETYPE_MAX_SIZES=8 ; max number of sizes in cache -D LVGL_FREETYPE_MAX_BYTES=16384 ; max bytes in cache -D LVGL_FREETYPE_MAX_BYTES_PSRAM=131072 ; max bytes in cache when using PSRAM