Author Topic: Label + Dynamic Font Issue  (Read 3026 times)

jehk

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Label + Dynamic Font Issue
« on: December 13, 2013, 03:46:39 PM »
I just updated to the latest version of NGUI (3.0.7 f3). I deleted the entire NGUI folder from my project then downloaded / imported it again from the asset store. I created a new 2D UI in an empty scene and created a label.

You can see the issue I have in the attachment. The lines are going up! It only happens with dynamic fonts. I tried a whole ton of different dynamic fonts and its all the same. Never have a problem with bit mapped fonts.

toqueteos

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 13
    • View Profile
Re: Label + Dynamic Font Issue
« Reply #1 on: December 13, 2013, 03:50:42 PM »
+1 same thing here.

jehk

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: Label + Dynamic Font Issue
« Reply #2 on: December 13, 2013, 03:55:49 PM »
Good to know its not just me.

I'm also getting the attached error when clicking Show All when selecting a dynamic font.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Label + Dynamic Font Issue
« Reply #3 on: December 13, 2013, 05:37:16 PM »
Dafuq. Ima fix this.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Label + Dynamic Font Issue
« Reply #4 on: December 13, 2013, 05:42:39 PM »
Ok, found the issue, re-uploaded the latest. You can also fix it locally without having to re-download by modifying NGUIText.cs, line 579 from this:
  1. v0.y = y + mTempChar.vert.yMax - baseline;
to this:
  1. v0.y = mTempChar.vert.yMax - baseline - y;

jehk

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: Label + Dynamic Font Issue
« Reply #5 on: December 13, 2013, 06:00:45 PM »
Fixed! Many thanks :)