Evas font: Added a comment to a confusing magic number.

SVN revision: 57913
This commit is contained in:
Tom Hacohen 2011-03-20 08:51:41 +00:00
parent 5c45d8fdaf
commit 6b2d04c4e0
1 changed files with 3 additions and 0 deletions

View 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;