Page 1 of 1

Problem with StaticText

Posted: Sat Mar 24, 2012 20:12
by RoboWarrior
I've created a StaticText in CEGUI, but I have a problem with the size of the text showed. I want to resize the text but I don't know how to solve.
This is the code:

Code: Select all

nome = CEGUI::WindowManager::getSingleton().createWindow("TaharezLook/StaticText","NomePlayer" + s);
nome->setText("<No Player>");
nome->setPosition(CEGUI::UVector2(CEGUI::UDim(0.3,0),CEGUI::UDim(dim_due+0.01,0)));
nome->setSize(CEGUI::UVector2(CEGUI::UDim(0.3,0),CEGUI::UDim(0.1,0)));
nome->setProperty("FrameEnabled", "False");


Thank you! :)

Re: Problem with StaticText

Posted: Sat Mar 24, 2012 20:14
by RoboWarrior
is it possible that maybe I've to change the font utilised with another one with chars resized? :))

Re: Problem with StaticText

Posted: Sat Mar 24, 2012 21:10
by Kulik
Yes, you can't just change size of text in CEGUI, you have to select another with with bigger characters.