I had to apply the fix for this issue in 2 places. When using Localization (im sure any run time text change would cause this as well)
Those 2 fixes are posted here:
http://www.tasharen.com/forum/index.php?topic=4627.msg22600#msg22600and then an issue occurred where i was not able to get the font to the correct size consistently with whats in the editor, and, it wasnt obeying the "line" limit in one of ngui's calculations, and forced the very last letter of the sentence to the next line.
A 3rd temporary solution for me was
In ProcessText() method, replace the following line
float maxY = (mFont.size * mMaxLineCount);
With the code below
float maxY = (mFont.size * mMaxLineCount);
if (mShrinkToFit) // Fix to help labels fit into 1 line, when told to only be 1 line
{
maxY = (mFont.size * mMaxLineCount) - 10;
}
This also corrects the size, after the previous 2 fixes. so that it is consistent with what you see in the editor, even with localization changing the text at runtime.
It's an issue that has to be solved from the ground up. Also. more checks on Line Limits, so that its impossible to have it ignore the line limit are needed.