Merge "Check character glyph index before using cached Font" into devel/master
authorJinho, Lee <jeano.lee@samsung.com>
Fri, 16 Jun 2017 07:52:33 +0000 (07:52 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Fri, 16 Jun 2017 07:52:34 +0000 (07:52 +0000)
dali-toolkit/internal/text/multi-language-support-impl.cpp

index fd1d8e4..020a5cb 100644 (file)
@@ -613,8 +613,9 @@ void MultilanguageSupport::ValidateFonts( const Vector<Character>& text,
           if( !isValidFont ) // (3)
           {
             // The given font has not been validated.
+            int validCharacterIndex = fontClient.GetGlyphIndex(cachedDefaultFontId, character );
 
-            if( isValidCachedDefaultFont )
+            if( isValidCachedDefaultFont && validCharacterIndex != 0u )
             {
               // Use the cached default font for the script if there is one.
               fontId = cachedDefaultFontId;