StaticText ignores empty line

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

zaexage
Just popping in
Just popping in
Posts: 15
Joined: Wed Mar 02, 2011 02:43

StaticText ignores empty line

Postby zaexage » Thu Jul 07, 2011 09:50

It seems that StaticText will not render empty lines.
e.g.: A\n\nB, the empty line will be missing

I gave it a quick dirty fix on RenderedString::getPixelSize(size_t), when the returned height for this line is near zero, I just change the height to 10.f;
it might be better to use current font's height to fill the gap, but our designer seems to be content with 10 pixels so this dirty fix will do, for now.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: StaticText ignores empty line

Postby CrazyEddie » Thu Jul 07, 2011 18:31

Kulik's been mentioning this recently too :lol:

We will add it to mantis and fix it soon :)

CE

zaexage
Just popping in
Just popping in
Posts: 15
Joined: Wed Mar 02, 2011 02:43

Re: StaticText ignores empty line

Postby zaexage » Fri Jul 08, 2011 01:00

Glad to know, looking forward to new release. :)


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 5 guests