From da512dde9b658b965c6dec4f80fe77b4575bd1b1 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 4 Nov 2010 16:32:42 +0000 Subject: [PATCH] Evas font-engine: Don't break if there was a previous miss. This is a workaround for a bug in the font index caching mechanism that happens if you cache the index miss before all the fonts were changed. We should probably just put a "dirty" flag on font sets that loaded more fonts or something like that. SVN revision: 54157 --- legacy/evas/src/lib/engines/common/evas_font_draw.c | 6 ++++++ 1 file changed, 6 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 776b8d20ae..d8646ded63 100644 --- a/legacy/evas/src/lib/engines/common/evas_font_draw.c +++ b/legacy/evas/src/lib/engines/common/evas_font_draw.c @@ -326,7 +326,13 @@ evas_common_font_glyph_search(RGBA_Font *fn, RGBA_Font_Int **fi_ret, int gl) *fi_ret = fm->fint; return fm->index; } +#if 0 + /* Returning here because of a previous miss when searching the + * glyph causes a bug when glyph caching was before all the + * fonts were loaded, I have no idea how to fix it cleanly, + * not at the moment anyway. -- TAsn */ else if (fm->index == -1) return 0; +#endif } }