+ // Get the current character.
+ const Character character = *(textBuffer + index);
+ bool isItalicRequired = false;
+ bool isBoldRequired = false;
+
+ // new description for current character
+ TextAbstraction::FontDescription currentFontDescription;
+ TextAbstraction::PointSize26Dot6 currentFontPointSize = defaultFontPointSize;
+ bool isDefaultFont = true;
+ MergeFontDescriptions(fontDescriptions,
+ defaultFontDescription,
+ defaultFontPointSize,
+ index,
+ currentFontDescription,
+ currentFontPointSize,
+ isDefaultFont);
+
+ // Get the font for the current character.
+ FontId fontId = fontClient.GetFontId(currentFontDescription, currentFontPointSize);
+
+ // Get the script for the current character.
+ Script script = GetScript(index,
+ scriptRunIt,
+ scriptRunEndIt);
+
+#ifdef DEBUG_ENABLED
+ if(gLogFilter->IsEnabledFor(Debug::Verbose))
+ {
+ Dali::TextAbstraction::FontDescription description;
+ fontClient.GetDescription(fontId, description);
+
+ DALI_LOG_INFO(gLogFilter,
+ Debug::Verbose,
+ " Initial font set\n Character : %x, Script : %s, Font : %s \n",
+ character,
+ Dali::TextAbstraction::ScriptName[script],
+ description.path.c_str());
+ }
+#endif