X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fshaper.cpp;h=624c443b92d639fde01e6d0b72483f91cde8d563;hb=300570df779616fb1538174d8b6f1b43514122eb;hp=5313d0c118a829ed0161317b1016726759d69f2e;hpb=4f2f51d77ac571ac97d44af755d9a86da41c29d2;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/shaper.cpp b/dali-toolkit/internal/text/shaper.cpp index 5313d0c..624c443 100644 --- a/dali-toolkit/internal/text/shaper.cpp +++ b/dali-toolkit/internal/text/shaper.cpp @@ -137,6 +137,8 @@ void ShapeText( const Vector& text, currentFontId = fontRun.fontId; currentScript = scriptRun.script; + bool softwareItalic = fontRun.softwareItalic; + bool softwareBold = fontRun.softwareBold; // Get the min index to the last character of both runs. CharacterIndex currentIndex = min( fontRun.characterRun.characterIndex + fontRun.characterRun.numberOfCharacters, @@ -170,12 +172,17 @@ void ShapeText( const Vector& text, // Retrieve the glyphs and the glyph to character conversion map. Vector tmpGlyphs; Vector tmpGlyphToCharacterMap; - tmpGlyphs.Resize( numberOfGlyphs ); + + GlyphInfo glyphInfo; + glyphInfo.softwareItalic = softwareItalic; + glyphInfo.softwareBold = softwareBold; + + tmpGlyphs.Resize( numberOfGlyphs, glyphInfo ); tmpGlyphToCharacterMap.Resize( numberOfGlyphs ); shaping.GetGlyphs( tmpGlyphs.Begin(), tmpGlyphToCharacterMap.Begin() ); - // Update the indices. + // Update the new indices of the glyph to character map. if( 0u != totalNumberOfGlyphs ) { for( Vector::Iterator it = tmpGlyphToCharacterMap.Begin(),