Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: whydoidoit on September 14, 2013, 12:05:30 AM

Title: Shrink To Fit Broken?
Post by: whydoidoit on September 14, 2013, 12:05:30 AM
In 2.6.5b it appears that my fonts no longer shrink to fit the available width, shrinking to fit an available height does alter the font scale (but isn't what I need).  So fixing the width has stopped working for me in one of the recent releases (I skipped one I think), as I've got a bunch of stuff that used to work fine!
Title: Re: Shrink To Fit Broken?
Post by: Nicki on September 14, 2013, 08:07:09 AM
For shrink to fit, you have to have maxLines set to 1.
Title: Re: Shrink To Fit Broken?
Post by: ArenMook on September 14, 2013, 09:57:42 AM
0, actually -- in 2.7.0
Title: Re: Shrink To Fit Broken?
Post by: jeldrez on September 27, 2013, 09:18:48 AM
IMHO  :-[
It's kind of weird how it works right now. If could support max line would be better.
Title: Re: Shrink To Fit Broken?
Post by: jeldrez on October 02, 2013, 02:21:01 PM
There's anyway to keep it in just 1 line?
When I set the max Height to 30 and the Font scale goes to 15, it use a second line for the rest of text. I don't want that, I just want 1 line.
Title: Re: Shrink To Fit Broken?
Post by: ArenMook on October 02, 2013, 04:46:11 PM
Then give it a height of 15.
Title: Re: Shrink To Fit Broken?
Post by: jeldrez on October 03, 2013, 07:26:15 AM
But 15 it's to low to start, I want it to be 30 and just decrease when the text goes to long. But keeping 1 line.
Title: Re: Shrink To Fit Broken?
Post by: ArenMook on October 04, 2013, 02:44:41 AM
Ok, I see what you're asking. I'll see if I can make it work like that. I'm not too happy with how the max lines is handled right now.
Title: Re: Shrink To Fit Broken?
Post by: jeldrez on October 04, 2013, 06:54:44 AM
Thanks Aren! ;)
I'm waiting for this!  ::)
Title: Re: Shrink To Fit Broken?
Post by: jeldrez on November 11, 2013, 03:44:34 PM
I just download the latest and it works perfectly.

Thanks a lot Aren!  ;)
Title: Re: Shrink To Fit Broken?
Post by: ArenMook on November 11, 2013, 03:46:05 PM
:)

It was actually a Pro user contribution originally... but it didn't work with dynamic fonts, and likewise broke if the label had newline characters, so I had to rewrite it. So I guess it was a user-nudged feature.