Author Topic: UILabel effect size  (Read 4312 times)

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
UILabel effect size
« on: July 30, 2012, 10:10:04 AM »
Hi !

That would be really great if we could set a size for the effects outline and shadows from the UILabel object. Currently it takes a size of 1. But we need to make an outline of 3-4 pixels around a label...

I've tried modifiying the UILabel code to do that, but it seems that to do the outline, you're applying a shadow along 4 axes, and when I set to a size of 5 for examples, I have no outline, but an odd shadow around the 4 axes (up down left and right)

Maybe you could tell me how do to it properly ?

Thanks ;)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILabel effect size
« Reply #1 on: July 30, 2012, 05:55:09 PM »
The outline and shadow effects are done by drawing the text multiple times, so I would not advise to use it to make the outline thicker. Better approach would be to bake this effect in Photoshop, or use a special approach with a custom shader using alpha-tested magnification. That would be this approach: http://www.tasharen.com/forum/index.php?topic=410.msg2004#msg2004

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
Re: UILabel effect size
« Reply #2 on: July 31, 2012, 05:24:39 AM »
Hum thanks for the answer but I'll stick with a new font in Photoshop :)

Much more easy to do ^^