From 3047bf4954ccfd8f4d185dc79fe2128b088315b9 Mon Sep 17 00:00:00 2001
From: Paul Wisbey
Date: Wed, 11 Mar 2015 12:53:33 +0000
Subject: [PATCH] Prefer color Emoji by default
Change-Id: Ic73eb25ce7c9ee2635db9becfe5779111f4a2f83
---
dali-toolkit/internal/text/multi-language-support-impl.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dali-toolkit/internal/text/multi-language-support-impl.cpp b/dali-toolkit/internal/text/multi-language-support-impl.cpp
index 6e41ae3482..4c68a74d5b 100644
--- a/dali-toolkit/internal/text/multi-language-support-impl.cpp
+++ b/dali-toolkit/internal/text/multi-language-support-impl.cpp
@@ -505,8 +505,11 @@ void MultilanguageSupport::ValidateFonts( const Vector& text,
// If the cache has not a default font, get one from the font client.
if( 0u == fontId )
{
+ // 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 );
+ fontId = fontClient.FindDefaultFont( character, pointSize, preferColor );
// If the system does not support a suitable font, fallback to Latin
if( 0u == fontId )
--
2.34.1