From 7a281f074567e7f66c30a36ba548e5115629a2be Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 18 Aug 2011 07:21:44 +0000 Subject: [PATCH] Evas font: Disabled word/metric caching due to bugs. SVN revision: 62547 --- legacy/evas/README.in | 4 ++-- legacy/evas/src/lib/engines/common/evas_font_draw.c | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/legacy/evas/README.in b/legacy/evas/README.in index 4625f6869f..36b2d95c90 100644 --- a/legacy/evas/README.in +++ b/legacy/evas/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/legacy/evas/src/lib/engines/common/evas_font_draw.c b/legacy/evas/src/lib/engines/common/evas_font_draw.c index 6fb70028da..d00bc9a5b7 100644 --- a/legacy/evas/src/lib/engines/common/evas_font_draw.c +++ b/legacy/evas/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