X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fshaper.cpp;h=624c443b92d639fde01e6d0b72483f91cde8d563;hb=0686e6d654472bffc56910890f39031ceac32d3b;hp=cd0b1d7e09a403c82d9cc79f87a9157c911794f2;hpb=e5ca10134c73ca0588f893adde82694ad907dd8d;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/shaper.cpp b/dali-toolkit/internal/text/shaper.cpp index cd0b1d7..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,7 +172,12 @@ 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() );