From 6b2d04c4e07462381b9d190efa657cd0ba6e90c4 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sun, 20 Mar 2011 08:51:41 +0000 Subject: [PATCH] Evas font: Added a comment to a confusing magic number. SVN revision: 57913 --- legacy/evas/src/lib/engines/common/evas_font_draw.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/legacy/evas/src/lib/engines/common/evas_font_draw.c b/legacy/evas/src/lib/engines/common/evas_font_draw.c index 195fe169bf..daa6dfa07d 100644 --- a/legacy/evas/src/lib/engines/common/evas_font_draw.c +++ b/legacy/evas/src/lib/engines/common/evas_font_draw.c @@ -263,6 +263,9 @@ evas_common_font_int_cache_glyph_get(RGBA_Font_Int *fi, FT_UInt index) if (!fi->fash) fi->fash = _fash_gl_new(); if (fi->fash) _fash_gl_add(fi->fash, index, fg); + /* This '+ 200' is just an estimation of how much memory freetype will use + * on it's size. This value is not really used anywhere in code - it's + * only for statistics. */ size = sizeof(RGBA_Font_Glyph) + sizeof(Eina_List) + (fg->glyph_out->bitmap.width * fg->glyph_out->bitmap.rows) + 200; fi->usage += size;