Author Topic: Request: Font Scale in Bitmap font widgets.  (Read 3884 times)

AeornFlippout

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 46
    • View Profile
Request: Font Scale in Bitmap font widgets.
« on: January 29, 2014, 05:32:47 PM »
Short version: It would be super handy to have a "font scale" option for labels that use bitmap fonts.

Long version:
Having recently upgraded from NGUI 2.3x to the latest 3.x - I really like the new widget system with width and height.

However, there's one case it's proving a bit hard to work with: Bitmap fonts.

We have a single bitmap font, created at a fairly large size to handle a variety of font size needs in our UI.
Our general flow with 3.x is to set a label height that gives the results we want for the zize of that particular label, and then use a "shrink to fit" setup.

However - there are a few cases where the contents of a text box are unknown during the UI design - for instance in generic dialogs. The "shrink to fit" option here ends up drawing HUGE letters in the case where there's not much text, and tiny letters with lots of text.

We could use the widget transform scale values to scale down the font so that the maximum size matches the desired letter height.
But transform scale seems like the wrong way to do things in the new UI.

Thoughts?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Request: Font Scale in Bitmap font widgets.
« Reply #1 on: January 29, 2014, 11:06:17 PM »
I was going to post my usual "it's on the list" response, but then I just alt tabbed back to Unity and coded it.

You will be able to specify the font size for bitmap labels now in the next release onwards.

AeornFlippout

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 46
    • View Profile
Re: Request: Font Scale in Bitmap font widgets.
« Reply #2 on: January 30, 2014, 07:49:43 AM »
Awesome, thanks so much!

Also I must say - I'm really impressed with the improvements in NGUI over the last few months.