Author Topic: 2.6.1 - Dynamic Fonts - Changing the Material  (Read 11359 times)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 2.6.1 - Dynamic Fonts - Changing the Material
« Reply #15 on: May 08, 2013, 05:43:24 PM »
Max texture size on some android devices is small. If you exceed it, your font will look like crap.

maoguo.zhang

  • Guest
Re: 2.6.1 - Dynamic Fonts - Changing the Material
« Reply #16 on: May 09, 2013, 04:30:49 AM »
It seems it's still broken in C. I will fix it in D.

ArenMook, have you fixed this bug in D?

ganqiang87

  • Guest
Re: 2.6.1 - Dynamic Fonts - Changing the Material
« Reply #17 on: May 09, 2013, 05:56:33 AM »
Max texture size on some android devices is small. If you exceed it, your font will look like crap.
hi ,Which I should modify the code to fix this problem

ganqiang87

  • Guest
Re: 2.6.1 - Dynamic Fonts - Changing the Material
« Reply #18 on: May 09, 2013, 05:57:58 AM »
Max texture size on some android devices is small. If you exceed it, your font will look like crap.
how to set Max texture size

ganqiang87

  • Guest
Re: 2.6.1 - Dynamic Fonts - Changing the Material
« Reply #19 on: May 09, 2013, 07:00:35 AM »
how to set Max texture size
I fix it
#if UNITY_3_5
      int maxSize = 4096;
#else
      //int maxSize = SystemInfo.maxTextureSize;
      int maxSize= 2048;
#endif

#if UNITY_ANDROID || UNITY_IPHONE
      if (PlayerSettings.targetGlesGraphics == TargetGlesGraphics.OpenGLES_1_x)
      {
         maxSize = Mathf.Min(maxSize, 1024);
      }
      else
      {
         maxSize = Mathf.Min(maxSize, NGUISettings.allow4096 ? 4096 : 2048);
      }
#endif
      maxSize= 2048;

ganqiang87

  • Guest
Re: 2.6.1 - Dynamic Fonts - Changing the Material
« Reply #20 on: May 09, 2013, 07:26:14 AM »
Max texture size on some android devices is small. If you exceed it, your font will look like crap.
ArenMook, I have another question to ask you.
altas maxTextureSize is below 2048.
but it don,t work  in android。
but  win  and ios are ok。
do you konw why?

ganqiang87

  • Guest
Re: 2.6.1 - Dynamic Fonts - Changing the Material
« Reply #21 on: May 09, 2013, 07:27:50 AM »
ArenMook, I have another question to ask you.
altas maxTextureSize is below 2048.
but it don,t work  in android。
but  win  and ios are ok。
do you konw why?
picture Texture  not font

maoguo.zhang

  • Guest
Re: 2.6.1 - Dynamic Fonts - Changing the Material
« Reply #22 on: May 11, 2013, 08:43:18 PM »
Changing material is still not allowed in 2.6.1d. :(

maoguo.zhang

  • Guest
Re: 2.6.1 - Dynamic Fonts - Changing the Material
« Reply #23 on: May 19, 2013, 08:46:28 PM »
Changing material is still not allowed in 2.6.1d. :(

Hi ArenMook,
I would like to know whether this bug has been fixed.

Thank you! :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 2.6.1 - Dynamic Fonts - Changing the Material
« Reply #24 on: May 20, 2013, 09:01:50 AM »
Works just fine for me in 2.6.1e.

maoguo.zhang

  • Guest
Re: 2.6.1 - Dynamic Fonts - Changing the Material
« Reply #25 on: May 22, 2013, 09:43:40 PM »
It works fine. Thank you!