From: Paul Wisbey Date: Wed, 4 Mar 2015 16:34:19 +0000 (+0000) Subject: Log which Fonts are selected for each script X-Git-Tag: new_text_0.1~22 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=b9766132aa8325588733797031076ea5ee825369 Log which Fonts are selected for each script Change-Id: I2fd1a055cb37c35895c3da49d503457f55f3457c --- diff --git a/dali-toolkit/internal/text/multi-language-support-impl.cpp b/dali-toolkit/internal/text/multi-language-support-impl.cpp index 27d0ee2..051b35a 100644 --- a/dali-toolkit/internal/text/multi-language-support-impl.cpp +++ b/dali-toolkit/internal/text/multi-language-support-impl.cpp @@ -36,6 +36,13 @@ namespace Dali namespace Toolkit { +namespace +{ +#if defined(DEBUG_ENABLED) +Debug::Filter* gLogFilter = Debug::Filter::New(Debug::Concise, true, "LOG_MULTI_LANGUAGE_SUPPORT"); +#endif +} + namespace Text { @@ -499,6 +506,11 @@ void MultilanguageSupport::ValidateFonts( const Vector& text, // Find a default font. fontId = fontClient.FindDefaultFont( character, pointSize ); +#ifdef DEBUG_ENABLED + Dali::TextAbstraction::FontDescription description; + fontClient.GetDescription( fontId, description ); + DALI_LOG_INFO( gLogFilter, Debug::Concise, "Script: %s; Selected font: %s\n", Dali::TextAbstraction::ScriptName[script], description.path.c_str() ); +#endif // Cache the font. *( defaultFontPerScriptCacheBuffer + script ) = fontId; }