StaticText ignores empty line
Posted: 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.
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.