From 48b29a7855e4733a2ba317ebea0c20ee243d4de4 Mon Sep 17 00:00:00 2001 From: tasn 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. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@54157 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/engines/common/evas_font_draw.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/engines/common/evas_font_draw.c b/src/lib/engines/common/evas_font_draw.c index 776b8d2..d8646de 100644 --- a/src/lib/engines/common/evas_font_draw.c +++ b/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 } } -- 2.7.4