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-helper-functions.cpp;h=731b89d6643c0b3b46b53a6921d9c64cde696063;hp=06b0f102934512fe85c056e4b4e8db000bb89de9;hb=3e30971f9884dc48e80ef82de4ef85fc9dba1229;hpb=96ffd67201c91f09328e018326fa37ec97249ada diff --git a/dali-toolkit/internal/text/multi-language-helper-functions.cpp b/dali-toolkit/internal/text/multi-language-helper-functions.cpp index 06b0f10..731b89d 100644 --- a/dali-toolkit/internal/text/multi-language-helper-functions.cpp +++ b/dali-toolkit/internal/text/multi-language-helper-functions.cpp @@ -32,6 +32,7 @@ namespace Text void MergeFontDescriptions( const Vector& fontDescriptions, Vector& fontIds, + Vector& isDefaultFont, const TextAbstraction::FontDescription& defaultFontDescription, TextAbstraction::PointSize26Dot6 defaultPointSize, CharacterIndex startIndex, @@ -43,6 +44,9 @@ void MergeFontDescriptions( const Vector& fontDescriptions, // Pointer to the font id buffer. FontId* fontIdsBuffer = fontIds.Begin(); + // Pointer to the 'is default' font buffer. + bool* isDefaultFontBuffer = isDefaultFont.Begin(); + // Used to temporarily store the style per character. TextAbstraction::FontDescription fontDescription; TextAbstraction::PointSize26Dot6 fontSize; @@ -57,7 +61,7 @@ void MergeFontDescriptions( const Vector& fontDescriptions, const CharacterIndex lastCharacterPlusOne = startIndex + numberOfCharacters; for( CharacterIndex index = startIndex; index < lastCharacterPlusOne; ++index ) { - bool defaultFont = true; + bool& defaultFont = *(isDefaultFontBuffer + index - startIndex ); Length runIndex = 0u;