* It uses the IsGlyphColor() method instead
creating a new bitmap and check if it's a
color one.
Change-Id: Icc3496757359a75ce3b8d9384a8120074a182ed5
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
if( isValidFont &&
isEmojiScript )
{
- const PixelData bitmap = fontClient.CreateBitmap( fontId, glyphIndex );
-
- // For color emojis, the font is valid if the bitmap is RGBA.
- isValidFont = bitmap && ( Pixel::BGRA8888 == bitmap.GetPixelFormat() );
+ // For color emojis, the font is valid if the glyph is a color glyph (the bitmap is RGBA).
+ isValidFont = fontClient.IsColorGlyph( fontId, glyphIndex );
}
// If there is a valid font, cache it.