Author Topic: UILabel text spacing bugged on Android  (Read 2899 times)

Lagrange

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
UILabel text spacing bugged on Android
« on: May 06, 2014, 08:26:56 PM »
I'm seeing kearning problems when I port my build to android:



I'm using regular Arial font with an outline.  I get the same results whether I use the built in unity font or an NGUI dynamic font.

Any advice? I've tried searching around for this, but I haven't found anything helpful.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILabel text spacing bugged on Android
« Reply #1 on: May 06, 2014, 10:09:54 PM »
Dynamic fonts = Unity. Their dynamic font system is horribly bugged and was, like many other features, left unfinished. Dynamic fonts provide no kerning information at all. I advise avoiding dynamic fonts if possible. Use NGUI bitmap fonts. They look predictably on all platforms. You can create them from the Font Maker.

Also, for an outline effect like that select the bitmap font and add an outline (bake it). Doing it by choosing a label option means the text is drawn 5 times instead of once.

Lagrange

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: UILabel text spacing bugged on Android
« Reply #2 on: May 07, 2014, 12:28:52 AM »
Dynamic fonts = Unity. Their dynamic font system is horribly bugged and was, like many other features, left unfinished. Dynamic fonts provide no kerning information at all. I advise avoiding dynamic fonts if possible. Use NGUI bitmap fonts. They look predictably on all platforms. You can create them from the Font Maker.

Also, for an outline effect like that select the bitmap font and add an outline (bake it). Doing it by choosing a label option means the text is drawn 5 times instead of once.

Thanks for the reply and the advice.  I'll try this out and report back if I still have any issues.