Glyphs images loaded and saved in memory at layouting level.
This means even if the size of text block is very small in comparison to its content, all glyphs images will be saved in the RAM.
The Idea is only cached at the drawing level. (** currently we are targeting color glyphs because these one allocate a lot of memory).
After applying this change:
- There is not much memory allocated at first (only for the visible part of the text).
- As soon as users start scrolling glyphs images will be loaded and memory will increase.
- If the user scroll reaches the bottom all glyphs images are loaded, and memory will be stable(no increment).
Add global configuration options to enable or disable it