Fixed the appearance of a bold text when setting underline property. 84/158984/3
authorJinho, Lee <jeano.lee@samsung.com>
Mon, 6 Nov 2017 07:56:01 +0000 (16:56 +0900)
committerJinho, Lee <jeano.lee@samsung.com>
Mon, 20 Nov 2017 14:48:32 +0000 (23:48 +0900)
Change-Id: I62ea5376854e8faf2476eb838e18b0f0e487321f

dali-toolkit/internal/text/rendering/text-typesetter.cpp

index c6e063841636a373fd5f6b89d30d5141cf300080..dcd803cec70f1be375ec8aa9cd5fc56c154d3e51 100755 (executable)
@@ -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 )