From 404fa5aa2a0b789adeb453b6ee83fef86fe0fdc9 Mon Sep 17 00:00:00 2001 From: "Jinho, Lee" Date: Mon, 6 Nov 2017 16:56:01 +0900 Subject: [PATCH] Fixed the appearance of a bold text when setting underline property. Change-Id: I62ea5376854e8faf2476eb838e18b0f0e487321f --- .../internal/text/rendering/text-typesetter.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/dali-toolkit/internal/text/rendering/text-typesetter.cpp b/dali-toolkit/internal/text/rendering/text-typesetter.cpp index c6e0638416..dcd803cec7 100755 --- a/dali-toolkit/internal/text/rendering/text-typesetter.cpp +++ b/dali-toolkit/internal/text/rendering/text-typesetter.cpp @@ -590,11 +590,14 @@ Devel::PixelBuffer Typesetter::CreateImageBuffer( const unsigned int bufferWidth // Don't render outline for other styles outlineWidth = 0.0f; } + if( style != Typesetter::STYLE_UNDERLINE ) + { + fontClient.CreateBitmap( glyphInfo->fontId, + glyphInfo->index, + glyphData.glyphBitmap, + outlineWidth ); + } - fontClient.CreateBitmap( glyphInfo->fontId, - glyphInfo->index, - glyphData.glyphBitmap, - outlineWidth ); // Sets the glyph's bitmap into the bitmap of the whole text. if( NULL != glyphData.glyphBitmap.buffer ) -- 2.34.1