Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: kellykelly82 on January 20, 2014, 10:28:28 PM

Title: NGUI 3.0.9 f2 Packed font doesn't work again.
Post by: kellykelly82 on January 20, 2014, 10:28:28 PM
So I back to 3.0.8 and It works.



Title: Re: NGUI 3.0.9 f2 Packed font doesn't work again.
Post by: ArenMook 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);