[4.0] Fixed the appearance of a bold text when setting underline property. 87/161387/1
authorJinho, Lee <jeano.lee@samsung.com>
Mon, 6 Nov 2017 07:56:01 +0000 (16:56 +0900)
committerJinho, Lee <jeano.lee@samsung.com>
Thu, 23 Nov 2017 06:20:08 +0000 (15:20 +0900)
Change-Id: I713b9caed94d900ab14585c307e68870d74789a3

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

index c6e0638..dcd803c 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 )