Evas font: Workaround an issue with metric cache.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 17 Aug 2011 15:42:01 +0000 (15:42 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 17 Aug 2011 15:42:01 +0000 (15:42 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@62536 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_font_draw.c

index 913fd12..0fb35b6 100644 (file)
@@ -149,7 +149,10 @@ evas_common_font_draw_internal(RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Font
                }
 
              if (xrun < 1) return;
-# ifdef WORD_CACHE
+/* For some reason, metric and word chache are exactly the same except for
+ * this piece of code that makes metric go nuts. ATM, we'll just go the
+ * WORD_CACHE path. */
+#if defined(METRIC_CACHE) || defined(WORD_CACHE)
              if (word->im)
                {
                   for (j = rowstart ; j < rowend ; j ++)