Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: gdeglin on June 10, 2013, 10:28:38 PM

Title: Dynamic font outline not contiguous on larger fonts
Post by: gdeglin 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.
Title: Re: Dynamic font outline not contiguous on larger fonts
Post by: ArenMook on June 10, 2013, 11:28:45 PM
There is -- by editing the font's texture in Photoshop. ;)
Title: Re: Dynamic font outline not contiguous on larger fonts
Post by: gdeglin 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.
Title: Re: Dynamic font outline not contiguous on larger fonts
Post by: Malzbier 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.)
Title: Re: Dynamic font outline not contiguous on larger fonts
Post by: hong88 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)