Author Topic: Scaling labels(/fonts)  (Read 3703 times)

Lukas

  • Guest
Scaling labels(/fonts)
« on: August 10, 2012, 02:47:47 AM »
I'm trying to figure out why labels/fonts scale so badly in NGUI. Putting text in a texture (i.e. a button) and scaling that does as expected but when I scale a label it gets all blockery, like there's no filtering at all.  You might wonder, why do you scale text? Well android has so many different resolutions/aspectratios I have to rely on auto scaling (combined with anchoring)
I can't really get my head around why there seems to be a difference in scaling.

Can anyone shine some light on how this works?

dlewis

  • Guest
Re: Scaling labels(/fonts)
« Reply #1 on: August 10, 2012, 04:04:03 AM »
As soon as the text becomes non-pixel perfect then it looks all weird (I can't give a better explanation than that). Hopefully true types fonts are added when Unity 4.0 is released.

Lukas

  • Guest
Re: Scaling labels(/fonts)
« Reply #2 on: August 10, 2012, 04:20:44 AM »
I know but not when you embed the text inside a sprite! So somehow fonts get handled differently, I guess

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scaling labels(/fonts)
« Reply #3 on: August 10, 2012, 04:36:27 AM »
Add some padding to your fonts before exporting. It won't look as bad when you scale it then.

Lukas

  • Guest
Re: Scaling labels(/fonts)
« Reply #4 on: August 10, 2012, 04:43:31 AM »
Thanks going to try that