From df07f919bc16a547bd23636e98b1ab77773afd46 Mon Sep 17 00:00:00 2001 From: tasn Date: Thu, 18 Aug 2011 07:21:44 +0000 Subject: [PATCH] Evas font: Disabled word/metric caching due to bugs. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@62547 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- README.in | 4 ++-- src/lib/engines/common/evas_font_draw.c | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.in b/README.in index 4625f68..36b2d95 100644 --- a/README.in +++ b/README.in @@ -764,7 +764,7 @@ into N regions (1 per core) to speed up rendering in software when you have multiple cpu cores. ---enable-word-cache +--enable-word-cache **DISABLED DUE TO BUGS** Cache rendered words and draw them as a single object, instead of individual characters. This is a big gain for things like neon which @@ -788,7 +788,7 @@ the e-devel mailing list or Brett Nash For GL see metric caching... ---enable-metric-cache +--enable-metric-cache **DISABLED DUE TO BUGS** Metric caching saves character metrics between characters in words. This enables it to render words much quicker as it avoids things like diff --git a/src/lib/engines/common/evas_font_draw.c b/src/lib/engines/common/evas_font_draw.c index 6fb7002..d00bc9a 100644 --- a/src/lib/engines/common/evas_font_draw.c +++ b/src/lib/engines/common/evas_font_draw.c @@ -7,6 +7,15 @@ #include "evas_font_ot.h" +/* Forcibly disable the broken word/metric caching. */ +#ifdef METRIC_CACHE +# undef METRIC_CACHE +#endif + +#ifdef WORD_CACHE +# undef WORD_CACHE +#endif + #define WORD_CACHE_MAXLEN 50 /* How many to cache */ #define WORD_CACHE_NWORDS 40 -- 2.7.4