From 541394175a6b45a29eac245dd72532e403cffde6 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Mon, 25 Oct 2010 11:56:20 +0000 Subject: [PATCH] fix tasn bug++ SVN revision: 53860 --- legacy/evas/src/lib/engines/common/evas_font_query.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/legacy/evas/src/lib/engines/common/evas_font_query.c b/legacy/evas/src/lib/engines/common/evas_font_query.c index 5edd0e79d0..7fdfb2fca6 100644 --- a/legacy/evas/src/lib/engines/common/evas_font_query.c +++ b/legacy/evas/src/lib/engines/common/evas_font_query.c @@ -107,7 +107,7 @@ evas_common_font_query_size(RGBA_Font *fn, const Eina_Unicode *text, const Evas_ /* hmmm kerning means i can't sanely do my own cached metric tables! */ /* grrr - this means font face sharing is kinda... not an option if */ /* you want performance */ - if ((use_kerning) && (prev_index) && (index) && + if ((use_kerning) && (prev_index) && (index) && (fg) && (pface == fi->src->ft.face)) { #ifdef BIDI_SUPPORT @@ -271,7 +271,7 @@ evas_common_font_query_advance(RGBA_Font *fn, const Eina_Unicode *text, const Ev /* hmmm kerning means i can't sanely do my own cached metric tables! */ /* grrr - this means font face sharing is kinda... not an option if */ /* you want performance */ - if ((use_kerning) && (prev_index) && (index) && + if ((use_kerning) && (prev_index) && (index) && (fg) && (pface == fi->src->ft.face)) { #ifdef BIDI_SUPPORT @@ -685,8 +685,8 @@ evas_common_font_query_last_up_to_pos(RGBA_Font *fn, const Eina_Unicode *in_text /* hmmm kerning means i can't sanely do my own cached metric tables! */ /* grrr - this means font face sharing is kinda... not an option if */ /* you want performance */ - if ((use_kerning) && (prev_index) && (index) && - (pface == fi->src->ft.face)) + if ((use_kerning) && (prev_index) && (index) && (fg) && + (pface == fi->src->ft.face)) { #ifdef BIDI_SUPPORT /* if it's rtl, the kerning matching should be reversed, i.e prev