X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fmulti-language-support-impl.cpp;h=37cf0405d1585632421a4cbe5652f7a15e1024c1;hp=8e55537b813ad2fcf0dd2ceb2ad77cacea0ad4f0;hb=04389e80b8cc630e33042923432d2d8ddb435f6f;hpb=4ac30f392a3277a566a03176ea066841c6784b61 diff --git a/dali-toolkit/internal/text/multi-language-support-impl.cpp b/dali-toolkit/internal/text/multi-language-support-impl.cpp index 8e55537..37cf040 100644 --- a/dali-toolkit/internal/text/multi-language-support-impl.cpp +++ b/dali-toolkit/internal/text/multi-language-support-impl.cpp @@ -428,6 +428,7 @@ void MultilanguageSupport::ValidateFonts( const Vector& text, // Whether the font being validated is a default one not set by the user. const bool isDefault = ( 0u == fontId ); + FontId preferredFont = fontId; DALI_LOG_INFO( gLogFilter, Debug::Verbose, @@ -525,8 +526,8 @@ void MultilanguageSupport::ValidateFonts( const Vector& text, // Emojis are present in many monochrome fonts; prefer color by default. bool preferColor = ( TextAbstraction::EMOJI == script ); - // Find a default font. - fontId = fontClient.FindDefaultFont( character, pointSize, preferColor ); + // Find a fallback-font. + fontId = fontClient.FindFallbackFont( preferredFont, character, pointSize, preferColor ); // If the system does not support a suitable font, fallback to Latin if( 0u == fontId )