/* 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
/* 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
/* 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