Author Topic: Shrink to Fit - Autogrow bool option  (Read 2346 times)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Shrink to Fit - Autogrow bool option
« on: July 04, 2013, 03:11:20 PM »
Could be auto-grow a bool option? since dynamic font have issues with missing characters, I've to convert the fonts into textures, but they've issues with auto-grow and mismatch the actual size.

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Shrink to Fit - Autogrow bool option
« Reply #1 on: July 04, 2013, 04:59:40 PM »
Shrink to fit option and the way label dimensions get specified is getting completely redone in a future version (very possibly even the next one).

That said, what do you mean by auto-grow? There is no auto-grow. The label is always at its default size or smaller, never larger.

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Shrink to Fit - Autogrow bool option
« Reply #2 on: July 04, 2013, 05:30:49 PM »
Now I'm getting a bigger fonts with the textured fonts in almost all the shrink to fit labels.
I don't know how to do it know, because when I was using the dynamic font I used a specified size per each shrink to fit labels. But with the texture font I just have 1 size, the one I created on BMFont.

I'm a little lost right now... =/

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Shrink to Fit - Autogrow bool option
« Reply #3 on: July 04, 2013, 05:34:32 PM »
If your bitmap font size is 48, your labels will always have a height of 48 with a single line. They will never grow past this height.

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Shrink to Fit - Autogrow bool option
« Reply #4 on: July 05, 2013, 08:47:36 AM »
So I'll need to parent them and resize the parent?
sh*tty dynamic font bug. ¬¬

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Shrink to Fit - Autogrow bool option
« Reply #5 on: July 05, 2013, 10:55:27 AM »
Although, doesn't take the max lines....

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Shrink to Fit - Autogrow bool option
« Reply #6 on: July 05, 2013, 07:58:47 PM »
I don't get it. What's the "bug"? I just said that nothing grows past the original font's size -- both with dynamic fonts, and with the bitmap fonts. Text shrinks so it fits. It will grow back only up to its original size, never past it.