X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit-internal%2Fdali-toolkit-test-utils%2Ftoolkit-text-utils.cpp;h=1c844c579c9b7c54e78b6ccac76141efd0e27f25;hb=56f0e94bab1f9ecc097c4a5209716cdc1ede7715;hp=31d81af5de2bf1156054d330464bd951c19ce4c0;hpb=534e542d7dcc1a1507a0e5e6845d49c06a15d326;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit-internal/dali-toolkit-test-utils/toolkit-text-utils.cpp b/automated-tests/src/dali-toolkit-internal/dali-toolkit-test-utils/toolkit-text-utils.cpp index 31d81af..1c844c5 100644 --- a/automated-tests/src/dali-toolkit-internal/dali-toolkit-test-utils/toolkit-text-utils.cpp +++ b/automated-tests/src/dali-toolkit-internal/dali-toolkit-test-utils/toolkit-text-utils.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2017 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -281,7 +281,8 @@ void CreateTextModel( const std::string& text, charactersToGlyph.Begin(), glyphsPerCharacter.Begin(), numberOfGlyphs, - Layout::HORIZONTAL_ALIGN_BEGIN ); + Text::HorizontalAlignment::BEGIN, + Text::LineWrap::WORD ); Vector& lines = visualModel->mLines; @@ -334,11 +335,13 @@ void CreateTextModel( const std::string& text, if( options.align ) { + float alignmentOffset = 0.f; layoutEngine.Align( textArea, 0u, numberOfCharacters, - Layout::HORIZONTAL_ALIGN_BEGIN, - lines ); + Text::HorizontalAlignment::BEGIN, + lines, + alignmentOffset ); } }