X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Ftext%2Ftext-utils-devel.cpp;h=9609a3b214443fad3fcbeecd5cf2f6261c0f3786;hb=b0faad981257720e1a5fb15af45647f30b669adf;hp=a4dbce47dc908ac00429191ebb5bb9e01925f8c5;hpb=1aa4664f4f29a1de0f5ee55630b753b81a83d089;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/text/text-utils-devel.cpp b/dali-toolkit/devel-api/text/text-utils-devel.cpp index a4dbce4..9609a3b 100644 --- a/dali-toolkit/devel-api/text/text-utils-devel.cpp +++ b/dali-toolkit/devel-api/text/text-utils-devel.cpp @@ -174,7 +174,8 @@ void ShapeTextPreprocess(const RendererParameters& textParameters, TextAbstracti fontDescriptionRuns, textModel->mLogicalModel->mEmbeddedItems, textModel->mLogicalModel->mAnchors, - textModel->mLogicalModel->mUnderlinedCharacterRuns); + textModel->mLogicalModel->mUnderlinedCharacterRuns, + textModel->mLogicalModel->mBackgroundColorRuns); if(textParameters.markupEnabled) { @@ -977,6 +978,7 @@ Size LayoutText(const RendererParameters& textParameters, TextAbstraction::TextR const bool isTextMirrored = internalDataModel.isTextMirrored; const Vector& mirroredUtf32Characters = internalDataModel.mirroredUtf32Characters; const Length numberOfCharacters = internalDataModel.numberOfCharacters; + const auto ellipsisPosition = textModel->mEllipsisPosition; Layout::Type layout = Layout::SINGLELINE; @@ -1030,9 +1032,8 @@ Size LayoutText(const RendererParameters& textParameters, TextAbstraction::TextR // Resize the vector of positions to have the same size than the vector of glyphs. rendererParameters.positions.Resize(numberOfGlyphs); - textModel->mLineWrapMode = Text::LineWrap::WORD; - textModel->mIgnoreSpacesAfterText = false; - textModel->mMatchSystemLanguageDirection = false; + textModel->mLineWrapMode = Text::LineWrap::WORD; + textModel->mIgnoreSpacesAfterText = false; Text::Layout::Parameters layoutParameters(internalDataModel.textLayoutArea, textModel); @@ -1053,7 +1054,8 @@ Size LayoutText(const RendererParameters& textParameters, TextAbstraction::TextR layoutEngine.LayoutText(layoutParameters, newLayoutSize, textParameters.ellipsisEnabled, - isAutoScrollEnabled); + isAutoScrollEnabled, + ellipsisPosition); return newLayoutSize; }