X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-controller-impl-model-updater.cpp;h=de18e8537a1b7e978ec5f41f4e6188cef34d7e2f;hb=702cdc29b907688eef62afbc63f0edb9e2dfb7d2;hp=2d1e28d8a9113c4cdefacc47edb4fd93a36bfa23;hpb=120b951f49a8f1bb98adc557b9415dd044632e5d;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/text-controller-impl-model-updater.cpp b/dali-toolkit/internal/text/text-controller-impl-model-updater.cpp index 2d1e28d..de18e85 100644 --- a/dali-toolkit/internal/text/text-controller-impl-model-updater.cpp +++ b/dali-toolkit/internal/text/text-controller-impl-model-updater.cpp @@ -374,9 +374,9 @@ bool ControllerImplModelUpdater::Update(Controller::Impl& impl, OperationsMask o case Dali::InputMethodContext::PreeditStyle::UNDERLINE: { // Add the underline for the pre-edit text. - GlyphRun underlineRun; - underlineRun.glyphIndex = attrData.startIndex + numberOfCommit; - underlineRun.numberOfGlyphs = numberOfIndices; + UnderlinedGlyphRun underlineRun; + underlineRun.glyphRun.glyphIndex = attrData.startIndex + numberOfCommit; + underlineRun.glyphRun.numberOfGlyphs = numberOfIndices; impl.mModel->mVisualModel->mUnderlineRuns.PushBack(underlineRun); //Mark-up processor case @@ -451,9 +451,9 @@ bool ControllerImplModelUpdater::Update(Controller::Impl& impl, OperationsMask o backgroundColorRun.color = BACKGROUND_SUB4; impl.mModel->mLogicalModel->mBackgroundColorRuns.PushBack(backgroundColorRun); - GlyphRun underlineRun; - underlineRun.glyphIndex = attrData.startIndex + numberOfCommit; - underlineRun.numberOfGlyphs = numberOfIndices; + UnderlinedGlyphRun underlineRun; + underlineRun.glyphRun.glyphIndex = attrData.startIndex + numberOfCommit; + underlineRun.glyphRun.numberOfGlyphs = numberOfIndices; impl.mModel->mVisualModel->mUnderlineRuns.PushBack(underlineRun); //Mark-up processor case @@ -472,9 +472,9 @@ bool ControllerImplModelUpdater::Update(Controller::Impl& impl, OperationsMask o backgroundColorRun.color = BACKGROUND_SUB5; impl.mModel->mLogicalModel->mBackgroundColorRuns.PushBack(backgroundColorRun); - GlyphRun underlineRun; - underlineRun.glyphIndex = attrData.startIndex + numberOfCommit; - underlineRun.numberOfGlyphs = numberOfIndices; + UnderlinedGlyphRun underlineRun; + underlineRun.glyphRun.glyphIndex = attrData.startIndex + numberOfCommit; + underlineRun.glyphRun.numberOfGlyphs = numberOfIndices; impl.mModel->mVisualModel->mUnderlineRuns.PushBack(underlineRun); //Mark-up processor case @@ -493,9 +493,9 @@ bool ControllerImplModelUpdater::Update(Controller::Impl& impl, OperationsMask o backgroundColorRun.color = BACKGROUND_SUB6; impl.mModel->mLogicalModel->mBackgroundColorRuns.PushBack(backgroundColorRun); - GlyphRun underlineRun; - underlineRun.glyphIndex = attrData.startIndex + numberOfCommit; - underlineRun.numberOfGlyphs = numberOfIndices; + UnderlinedGlyphRun underlineRun; + underlineRun.glyphRun.glyphIndex = attrData.startIndex + numberOfCommit; + underlineRun.glyphRun.numberOfGlyphs = numberOfIndices; impl.mModel->mVisualModel->mUnderlineRuns.PushBack(underlineRun); //Mark-up processor case @@ -514,9 +514,9 @@ bool ControllerImplModelUpdater::Update(Controller::Impl& impl, OperationsMask o backgroundColorRun.color = BACKGROUND_SUB7; impl.mModel->mLogicalModel->mBackgroundColorRuns.PushBack(backgroundColorRun); - GlyphRun underlineRun; - underlineRun.glyphIndex = attrData.startIndex + numberOfCommit; - underlineRun.numberOfGlyphs = numberOfIndices; + UnderlinedGlyphRun underlineRun; + underlineRun.glyphRun.glyphIndex = attrData.startIndex + numberOfCommit; + underlineRun.glyphRun.numberOfGlyphs = numberOfIndices; impl.mModel->mVisualModel->mUnderlineRuns.PushBack(underlineRun); //Mark-up processor case @@ -572,6 +572,7 @@ bool ControllerImplModelUpdater::Update(Controller::Impl& impl, OperationsMask o { impl.CopyUnderlinedFromLogicalToVisualModels(true); impl.CopyStrikethroughFromLogicalToVisualModels(); + impl.CopyCharacterSpacingFromLogicalToVisualModels(); } updated = true;