Only use work and metric cacheing on 3 character or longer strings.

SVN revision: 49988
This commit is contained in:
Brett Nash 2010-07-02 06:47:22 +00:00
parent ac552cd762
commit b304ae1642
1 changed files with 1 additions and 2 deletions

View File

@ -413,8 +413,7 @@ evas_common_font_draw_internal(RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Font
for (len = 0 ; text[len] && len < WORD_CACHE_MAXLEN ; len ++)
;
if (len < WORD_CACHE_MAXLEN){
if (len > 2 && len < WORD_CACHE_MAXLEN){
struct prword *word = evas_font_word_prerender(dc, text, len, fn, fi,
use_kerning);
if (word){