You will want to look at UILabel.ProcessText function. It calculates the size using NGUIText.Wrap, and if it doesn't fit, reduces the font size by a notch and tries again until it does.
Thanks, ill look into it ASAP, But how does it know when to break a long line into 2 or more lines?
The re size part work correctly but when it break a long line into multi lines then the problem rises.
*Look at it:
Ill press enter after this line!
This long line is for test purpose and i don't know what else to write, please read it at your own risk!
*when i change screen size it will be correctly like this in left to right languages:
Ill press enter after this line!
This long line is for test purpose and i
don't know what else to write, please
read it at your own risk!
*but it will be like this in right to left languages:
read it at your own risk!
don't know what else to write, please
This long line is for test purpose and i
Ill press enter after this line!
*How do you think we can fix this? Can you change the text wrap function to recognize right to left languages and break lines correctly?