From 87ee192bc7f97c78faea025484fc90ac231cfd81 Mon Sep 17 00:00:00 2001 From: "minho.sun" Date: Thu, 11 Jan 2018 15:33:32 +0900 Subject: [PATCH] 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 --- dali-toolkit/internal/text/layouts/layout-engine.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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" ); -- 2.7.4