X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-view.cpp;h=88c9b42fbf46ac1ed1627414002c5dc68fcafab4;hp=73334282c4d677c5e41ef06ff944043e01727cdd;hb=dd0c9395ff85899332844c0acfa604fce5011b6a;hpb=a0bc72c2530d445a843cc0ad5dbe047f1f6c0883 diff --git a/dali-toolkit/internal/text/text-view.cpp b/dali-toolkit/internal/text/text-view.cpp index 7333428..88c9b42 100644 --- a/dali-toolkit/internal/text/text-view.cpp +++ b/dali-toolkit/internal/text/text-view.cpp @@ -94,6 +94,7 @@ Length View::GetNumberOfGlyphs() const Length View::GetGlyphs( GlyphInfo* glyphs, Vector2* glyphPositions, + float& minLineOffset, GlyphIndex glyphIndex, Length numberOfGlyphs ) const { @@ -157,6 +158,7 @@ Length View::GetGlyphs( GlyphInfo* glyphs, // Add the alignment offset to the glyph's position. + minLineOffset = line->alignmentOffset; float penY = line->ascender; for( Length index = 0u; index < numberOfLaidOutGlyphs; ++index ) { @@ -174,6 +176,7 @@ Length View::GetGlyphs( GlyphInfo* glyphs, if( lineIndex < numberOfLines ) { line = lineBuffer + lineIndex; + minLineOffset = std::min( minLineOffset, line->alignmentOffset ); lastGlyphIndexOfLine = line->glyphRun.glyphIndex + line->glyphRun.numberOfGlyphs - 1u;