//The demo can be closed using the window or it will timeout automatically.
AddTask(mTimeout);
mTextEntity=shared_ptr<TextEntity>(newTextEntity("Hello World three four five areallylongwordthatshouldbescaled",GetFontManager()->GetResource("TestFont")));
mTextEntity->SetUseMaxWidth(true);
mTextEntity->SetMaxWidth(750);
mTextEntity->UpdateMesh();
Vector3scale=mTextEntity->GetTextDimensions();
scale.y=5.f/scale.y;
scale.x=scale.y;
scale.z=1.0f;
mTextEntity->SetScale(scale);
mScene.AddRenderable(mTextEntity);
//Non-fixed width text, using a text scale rather than node scale.