Author Topic: UI Label justification  (Read 2435 times)

goTAN

  • Guest
UI Label justification
« on: July 11, 2013, 08:52:17 AM »
Hey guys,

I am trying to justify the UILabel but I can't find the correct position in UIFont to do so.
For now I try to add additional code in the Print method, similar to the Align method but I just don't
get it.
In theory I just wanna iterate over each word until the first line break (which was added by the word wrapping method)
then I wanna add the additional space left (lineWidth - actualWidth) after each word.

I don't know how to get the spaces between the words to adjust them nor do I completely understand the verts list.

Any help is highly appreciated.

DCassy

  • Guest
Re: UI Label justification
« Reply #1 on: July 16, 2013, 06:58:08 AM »
Hello,

I really need this feature too ! Found it strange it's not included in NGUI. Anyway, if anybody has a solution it would be great to post it here...