From 74b0264412e2686ba7cb1dda3bfadce4f99407e8 Mon Sep 17 00:00:00 2001 From: Philippe G Date: Mon, 17 Aug 2020 13:36:53 -0700 Subject: [PATCH] remove large fonts - release --- components/display/core/gds_text.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/display/core/gds_text.c b/components/display/core/gds_text.c index aa48ae36..eab28883 100644 --- a/components/display/core/gds_text.c +++ b/components/display/core/gds_text.c @@ -35,12 +35,20 @@ static const struct GDS_FontDef *GuessFont( struct GDS_Device *Device, int FontT case GDS_FONT_MEDIUM: default: return &Font_droid_sans_fallback_15x17; +#ifdef USE_LARGE_FONTS case GDS_FONT_LARGE: return &Font_droid_sans_fallback_24x28; break; case GDS_FONT_SEGMENT: if (Device->Height == 32) return &Font_Tarable7Seg_16x32; else return &Font_Tarable7Seg_32x64; +#else + case GDS_FONT_LARGE: + case GDS_FONT_SEGMENT: + ESP_LOGW(TAG, "large fonts disabled"); + return &Font_droid_sans_fallback_15x17; + break; +#endif } }