+ // If there is no text-actor, try to retrieve one from the cache.
+ textActor = relayoutData.mTextActorCache.RetrieveTextActor();
+
+ // If still there is no text-actor, create one.
+ if( !textActor )
+ {
+ textActor = TextActor::New( Text(), characterLayout.mStyledText.mStyle, false, true );
+ }
+ else
+ {
+ textActor.SetTextStyle( characterLayout.mStyledText.mStyle );
+ }
+
+ currentGlyphActor = textActor;