Author Topic: NGUI 3.0.9 f2 Packed font doesn't work again.  (Read 1355 times)

kellykelly82

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
NGUI 3.0.9 f2 Packed font doesn't work again.
« on: January 20, 2014, 10:28:28 PM »
So I back to 3.0.8 and It works.




ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 3.0.9 f2 Packed font doesn't work again.
« Reply #1 on: January 21, 2014, 01:02:33 AM »
Thanks, I found the issue. You can fix it locally by opening up NGUIText.cs, line 1053, and replacing that section with:
  1.                                                 Color col = uc;
  2.  
  3.                                                 col *= 0.49f;
  4.  
  5.                                                 switch (glyph.channel)
  6.                                                 {
  7.                                                         case 1: col.b += 0.51f; break;
  8.                                                         case 2: col.g += 0.51f; break;
  9.                                                         case 4: col.r += 0.51f; break;
  10.                                                         case 8: col.a += 0.51f; break;
  11.                                                 }
  12.  
  13.                                                 Color32 c = col;
  14.                                                 for (int j = 0, jmax = (bold ? 16 : 4); j < jmax; ++j)
  15.                                                         cols.Add(c);