Author Topic: Label Outline Problem  (Read 2452 times)

Aastha

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 18
    • View Profile
Label Outline Problem
« on: October 15, 2014, 07:34:00 AM »
Hi,
I am using NGUI label in my project and I want a thick outline on the label so I set the outline values to 2 but after setting the value greater than 1, the outline is not perfect it breaks at some points. For clarification please find attached a screenshot. Can anyone please help to resolve the issue?

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Label Outline Problem
« Reply #1 on: October 15, 2014, 09:54:25 AM »
Because it's not a real outline, it's just a duplicated text with offset.  :'(

Aastha

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 18
    • View Profile
Re: Label Outline Problem
« Reply #2 on: October 16, 2014, 12:30:43 AM »
So is there any of making perfect outline?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Label Outline Problem
« Reply #3 on: October 16, 2014, 06:48:49 AM »
If you want a true outline, you need to do that in the texture itself. Create a bitmap font using the Font Maker, and don't add it to an atlas (just make it a stand-alone font/texture). Select the font prefab, give it some padding by hitting +1 Transparent Border a few times. Now open the texture in Photoshop and add a border to it. Save, and it'll look as you want it. You can now add it to an atlas if you like.