1
NGUI 3 Support / Word wrapping in UILabel breaks at last character
« on: June 18, 2014, 09:49:10 AM »
Hey everyone,
I've been struggling with this for a while. Found some posts here on similar issues, but none of them solved my prob.
We're using NGUI 3.6.1, developing an app for mobile (Android & iOS) which contains tons of dynamic texts.
Our customer is in Germany, meaning... lots of long German words :-)
On multiline UILabels with "ResizeHeight", when the last word in the line is just a bit too long, sometimes the last character
is broken into a new separate line.
It doesn't even "join" the following line - it's much worse - the last character appears in a separate line of its own,
then another line break, and only then the rest of the text continues...
I've tried to dig into the UILabel code and NGUIText.WrapText(), but gave up pretty quickly :-)
Maybe someone has already found a solution for this?
TNX
Daled.
BTW, I'm using bitmap fonts
I've been struggling with this for a while. Found some posts here on similar issues, but none of them solved my prob.
We're using NGUI 3.6.1, developing an app for mobile (Android & iOS) which contains tons of dynamic texts.
Our customer is in Germany, meaning... lots of long German words :-)
On multiline UILabels with "ResizeHeight", when the last word in the line is just a bit too long, sometimes the last character
is broken into a new separate line.
It doesn't even "join" the following line - it's much worse - the last character appears in a separate line of its own,
then another line break, and only then the rest of the text continues...
I've tried to dig into the UILabel code and NGUIText.WrapText(), but gave up pretty quickly :-)
Maybe someone has already found a solution for this?
TNX
Daled.
BTW, I'm using bitmap fonts


