[3.0] Use IsGlyphColor(). 51/116051/2
authorVictor Cebollada <v.cebollada@samsung.com>
Fri, 17 Feb 2017 16:07:56 +0000 (16:07 +0000)
committerVictor Cebollada <v.cebollada@samsung.com>
Thu, 23 Feb 2017 18:28:06 +0000 (18:28 +0000)
* 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>
dali-toolkit/internal/text/multi-language-support-impl.cpp

index c803c1d..ab4b388 100644 (file)
@@ -594,10 +594,8 @@ void MultilanguageSupport::ValidateFonts( const Vector<Character>& text,
           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.