Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: skullthug on August 13, 2014, 06:10:32 PM

Title: Avoiding faux (fake) bold when using inline bold on UILabel?
Post by: skullthug on August 13, 2014, 06:10:32 PM
Hi there. I was wondering if there was a way to avoid NGUI from doing a faux bold when doing an inline bold via a string on a single text field?

I've noticed NGUI does properly use the specific bold type face for the font family when using the dropdown in the UILabel settings, so I was surprised it does the faux bold instead of referencing the specific bold typeface in the font family.
In my setup, the bold typeface is a separate font, though part of the same family. So, in a sense it would be like using two fonts on one text field I suppose. Could that be it?

Here's an example:
(http://i.imgur.com/CSdzRCK.png)


Title: Re: Avoiding faux (fake) bold when using inline bold on UILabel?
Post by: ArenMook on August 14, 2014, 07:31:04 AM
You can't switch font faces using inlining. NGUI's inline bold tag achieves its result by drawing the font multiple times. It's done like that for consistency on both dynamic and bitmap fonts, as bitmap fonts don't have any other way of doing this.