From: Victor Cebollada Date: Thu, 24 Jul 2014 12:50:23 +0000 (+0100) Subject: Shadow bone lighting example uses the new TextActor's constructor. X-Git-Tag: dali_1.0.2~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F65%2F24965%2F1;p=platform%2Fcore%2Fuifw%2Fdali-demo.git Shadow bone lighting example uses the new TextActor's constructor. Change-Id: I0234549e95c5de5f7ed581b772ca65ba73622716 Signed-off-by: Victor Cebollada --- diff --git a/examples/shadows/shadow-bone-lighting-example.cpp b/examples/shadows/shadow-bone-lighting-example.cpp index cb6d5ab..1805c73 100644 --- a/examples/shadows/shadow-bone-lighting-example.cpp +++ b/examples/shadows/shadow-bone-lighting-example.cpp @@ -264,7 +264,13 @@ public: mCastingLight.SetAnchorPoint(AnchorPoint::CENTER); mCastingLight.SetPosition( Vector3( 0.0f, 0.0f, 800.0f ) * scaleFactor ); - TextActor text = TextActor::New("Light", Font::New(FontParameters("Times New Roman", "Book", PointSize(20.0f)))); + TextStyle style; + style.SetFontPointSize( PointSize(20.0f) ); + style.SetFontName("Times New Roman"); + style.SetFontStyle("Book"); + + TextActorParameters parameters( style, TextActorParameters::FONT_DETECTION_ON ); + TextActor text = TextActor::New("Light", parameters); text.SetColor(Color::BLUE); mCastingLight.Add(text);