Author Topic: Dynamic font outline not contiguous on larger fonts  (Read 3435 times)

gdeglin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 18
    • View Profile
Dynamic font outline not contiguous on larger fonts
« on: June 10, 2013, 10:28:38 PM »
Hi, I've noticed that larger outlines on large fonts sometimes develop gaps at the corners of each letter. I attached an example screenshot.

Not sure what's causing it. Any help in preventing this from happening is would be much appreciated.

Edit:

I experimented with it a bit more and I see now that the outline is created by basically drawing two overlapping shadows underneath the character, and that can lead to this problem if the distance is too big.

Reducing the outline distance makes this problem much less noticeable. But I wish there was a way to be able to get thicker outlines without this problem.
« Last Edit: June 10, 2013, 10:35:17 PM by gdeglin »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic font outline not contiguous on larger fonts
« Reply #1 on: June 10, 2013, 11:28:45 PM »
There is -- by editing the font's texture in Photoshop. ;)

gdeglin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 18
    • View Profile
Re: Dynamic font outline not contiguous on larger fonts
« Reply #2 on: June 10, 2013, 11:41:17 PM »
Ha, well yes that would work. But we need to support a bunch of non-latinized languages so we're forced to use dynamic fonts.

It would be great if NGUI came with a way to do some effects like this: http://catlikecoding.com/unity/documentation/text-shaders/

I see that the above link requires the fonts to be in a distance map though, so I imagine some work would be required to make them work with dynamic fonts.

Malzbier

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 93
    • View Profile
Re: Dynamic font outline not contiguous on larger fonts
« Reply #3 on: June 11, 2013, 01:54:44 AM »
More Text Rendering options would be very nice.
(Not sure if that would not make a bug Draw-call explosion but NGUI is so optimized that this argument does not count.)

hong88

  • Guest
Re: Dynamic font outline not contiguous on larger fonts
« Reply #4 on: June 11, 2013, 03:14:33 AM »
I also have this kind of problem, I hope that is a solution for it.
The font within screenshot is 100px exported and 100 scale in scene.
Even i make it smaller size to 40 px it still have this kind of problem.

PS: My version is 2.5.0c ( any update version does fix this problem)
« Last Edit: June 11, 2013, 03:20:18 AM by hong88 »