This new enum will allow specifying garbage size for bitmaps in RAM. EVAS_FONT_DATA_CACHE_BITMAP
typedef enum _Evas_Font_Data_Cache { EVAS_FONT_DATA_CACHE_TEXTURE = 0x01,/**< Texture caching (in case of accelerated rendering) */ EVAS_FONT_DATA_CACHE_BITMAP = 0x02,/**< Bitmap caching from font files */ } Evas_Font_Data_Cache; /**< font caching options, used for evas_font_data_cache_set()/evas_font_data_cache_get()*/
Notes:
In hardware-accelerated rendering, there are two copies of the same bitmap glyph data. one in the RAM and one as texture data in video memory, so specifying low EVAS_FONT_DATA_CACHE_BITMAP in hardware rendering will reduce memory consumption without effecting the performance of the rendering
This has the following limitation:
- does not work with async rendering (like software rendering).