Evas font: Added a comment to a confusing magic number.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 20 Mar 2011 08:51:41 +0000 (08:51 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 20 Mar 2011 08:51:41 +0000 (08:51 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@57913 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_font_draw.c

index 195fe16..daa6dfa 100644 (file)
@@ -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;