(TextActor) Ensure TextAttachment is updated after SetTextStyle 53/30453/1
authorAgnelo Vaz <agnelo.vaz@samsung.com>
Tue, 18 Nov 2014 14:43:50 +0000 (14:43 +0000)
committerAgnelo Vaz <agnelo.vaz@samsung.com>
Tue, 18 Nov 2014 14:43:50 +0000 (14:43 +0000)
DoRender in Scene graph text Renderer always had the same pixel size for different font sizes because TextChanged was not called in TextAttachment SetStyle

Change-Id: Ida7f58b4f62577256aecd2fc267210ff42ad260a
Signed-off-by: Agnelo Vaz <agnelo.vaz@samsung.com>
dali/internal/event/actors/text-actor-impl.cpp

index d378734..8d60a79 100644 (file)
@@ -476,6 +476,7 @@ void TextActor::SetTextStyle( const TextStyle& style, TextRequestMode mode )
   {
     mTextAttachment->ResetGradient();
   }
+  TextChanged();
 }
 
 TextStyle TextActor::GetTextStyle() const