Author Topic: Avoiding faux (fake) bold when using inline bold on UILabel?  (Read 3751 times)

skullthug

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 0
  • Posts: 37
    • View Profile
Avoiding faux (fake) bold when using inline bold on UILabel?
« 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:




ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Avoiding faux (fake) bold when using inline bold on UILabel?
« Reply #1 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.