Author Topic: Shrink To Fit Broken?  (Read 7077 times)

whydoidoit

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Shrink To Fit Broken?
« 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!

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Shrink To Fit Broken?
« Reply #1 on: September 14, 2013, 08:07:09 AM »
For shrink to fit, you have to have maxLines set to 1.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Shrink To Fit Broken?
« Reply #2 on: September 14, 2013, 09:57:42 AM »
0, actually -- in 2.7.0

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Shrink To Fit Broken?
« Reply #3 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.

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Shrink To Fit Broken?
« Reply #4 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Shrink To Fit Broken?
« Reply #5 on: October 02, 2013, 04:46:11 PM »
Then give it a height of 15.

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Shrink To Fit Broken?
« Reply #6 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Shrink To Fit Broken?
« Reply #7 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.

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Shrink To Fit Broken?
« Reply #8 on: October 04, 2013, 06:54:44 AM »
Thanks Aren! ;)
I'm waiting for this!  ::)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Shrink To Fit Broken?
« Reply #9 on: November 11, 2013, 03:44:34 PM »
I just download the latest and it works perfectly.

Thanks a lot Aren!  ;)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Shrink To Fit Broken?
« Reply #10 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.