Hello,
first of all, let me refer to the article Memory Footprint which explains all details of memory consumption and memory footprint reduction.
The macros EW_MAX_GLYPH_SURFACE_WIDTH and EW_MAX_GLYPH_SURFACE_HEIGHT specify the dimension of the glyph cache surface. This surface stores all glyphs used during text drawing operations. The larger the surface the more glyphs can be reused without needing to decompress or rasterize them again. The values for the macros are expressed in pixel as integer numbers lying between 64 and the maximum surface size supported on the graphics hardware. You should ensure, that the glyph surface is at least as large as the biggest glyph you want to display at the runtime. The following quotation can be used to calculate the approximated RAM usage resulting from the configuration of the macros:
( EW_MAX_GLYPH_SURFACE_WIDTH * EW_MAX_GLYPH_SURFACE_HEIGHT ) * 1 Byte.
On the other side - the larger the glyph surface, the better performance can be achieved, because the glyphs are not decompressed or rasterized again and again...
Maybe there are other possibilities to save RAM in your target? Can you share your ewconfig.h file?
Best regards,
Manfred.