From: minho.sun Date: Thu, 11 Jan 2018 06:33:32 +0000 (+0900) Subject: Modify linebreak unit when creating LineLayout X-Git-Tag: dali_1.3.39~4^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=87ee192bc7f97c78faea025484fc90ac231cfd81 Modify linebreak unit when creating LineLayout - period is reconized word unit. - In the past, if the text exceeded the line layout size, only the period was down to another line. - Modify line breaks to linebreak instead of Wordbreak. Change-Id: Ice94c19550807f5e7d8907152e07ec0aaa4c6e10 Signed-off-by: minho.sun --- diff --git a/dali-toolkit/internal/text/layouts/layout-engine.cpp b/dali-toolkit/internal/text/layouts/layout-engine.cpp index af257ff..4ace75b 100644 --- a/dali-toolkit/internal/text/layouts/layout-engine.cpp +++ b/dali-toolkit/internal/text/layouts/layout-engine.cpp @@ -281,9 +281,6 @@ struct Engine::Impl // Get the line break info for the current character. const LineBreakInfo lineBreakInfo = hasCharacters ? *( parameters.lineBreakInfoBuffer + characterLastIndex ) : TextAbstraction::LINE_NO_BREAK; - // Get the word break info for the current character. - const WordBreakInfo wordBreakInfo = *( parameters.wordBreakInfoBuffer + characterLastIndex ); - // Increase the number of characters. tmpLineLayout.numberOfCharacters += charactersPerGlyph; @@ -458,7 +455,7 @@ struct Engine::Impl } if( isMultiline && - ( TextAbstraction::WORD_BREAK == wordBreakInfo ) ) + ( TextAbstraction::LINE_ALLOW_BREAK == lineBreakInfo ) ) { oneWordLaidOut = isWordLaidOut; DALI_LOG_INFO( gLogFilter, Debug::Verbose, " One word laid-out\n" );