Page 1 of 1

StaticText ignores empty line

Posted: Thu Jul 07, 2011 09:50
by zaexage
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.

Re: StaticText ignores empty line

Posted: Thu Jul 07, 2011 18:31
by CrazyEddie
Kulik's been mentioning this recently too :lol:

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

CE

Re: StaticText ignores empty line

Posted: Fri Jul 08, 2011 01:00
by zaexage
Glad to know, looking forward to new release. :)