Search Unity

UGUI text broken

Discussion in 'UGUI & TextMesh Pro' started by arterta, Jan 6, 2016.

  1. arterta

    arterta

    Joined:
    Jan 6, 2016
    Posts:
    3
    I used dynamic font in my project, when many Chinese character text show on UI, the font texture rebuilding, and the text uv wrong,All the text broken. I Used Unity 5.2.3p3, Can someone help me ? Thank you.
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,282
    Have you tried the latest patch version to see if the issue is fixed? http://unity3d.com/unity/qa/patch-releases
    If you still have the problem create a bug report and include an example project with the problem so we can take a look.
     
  3. arterta

    arterta

    Joined:
    Jan 6, 2016
    Posts:
    3
    Yes, I use the latest patch version. Can you answer me some puzzles ?
    1. When will cause the font rebuilding?
    a) add new character or the font texture not big enough?
    b) different size font render on the same texture?
    2. Is dynamic font use only one Texture?
    If we have 3000 different asia character render at the same time , the font texture is not big enough, how to rebuilding the font texture?
    3. If dynamic font has only one texture, the texture is larger than 2048, some android device does not support that? how can I fix it?

    4. How can I use one custom set font in different font size ?

    Thank you very much.
     
    Last edited: Jan 6, 2016
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,282
    It sounds like you are encountering this bug: http://issuetracker.unity3d.com/iss...nging-font-size-scrambles-another-text-object

    A possible workaround is to have multiple font atlases. one for each size so they have more texture space. This is obviously less efficient so probably requires a combination of both to get a good balance. To do this have duplicates of the same font in your project, each will generate an atlas.
     
  5. arterta

    arterta

    Joined:
    Jan 6, 2016
    Posts:
    3
    Can I use one dynamic font with number of textures ?
    How can I define the font texture size ?

    Like this question http://answers.unity3d.com/answers/1123110/view.html
    Thank you !!!!
     
    Last edited: Jan 7, 2016
  6. KB

    KB

    Joined:
    Dec 9, 2012
    Posts:
    18
    The link above (in Karl_Jones 2nd reply) says this was fixed but I still get a bug now even using the latest Unity patch.

    upload_2017-7-18_12-19-59.png

    As you can see in the image, the letter K is broken here. Normally the text is totally un-readable. This was on a uGUI button in Unity 5.6.2p3 and the link above claims the problem was fixed in 5.3.x. The bug I am getting is NOT fixed using the latest version so presumably either regression or another bug?

    I have tried multiple fonts and using different fonts on the same panel but still randomly get the problem perhaps on 1 in 10 times, not on every panel.

    This is extremely frustrating as I am perhaps 3 weeks from release and totally snowed under with stuff I need to add. Creating different font atlases would involve 100's of them to cover every text size and and every menu so this is not a sensible option. Is there an actual fix or at least a viable solution please?
     
  7. KB

    KB

    Joined:
    Dec 9, 2012
    Posts:
    18
    Also happens in Unity 5.6.1f1.
     
  8. HarryCodder

    HarryCodder

    Joined:
    Feb 20, 2015
    Posts:
    84
    I can confirm the bug still exists in versions up to 5.6.4 at least.
     
  9. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,282
    If it is still broken then please file a bug report.
     
  10. HarryCodder

    HarryCodder

    Joined:
    Feb 20, 2015
    Posts:
    84
    Hi,
    This bug is nearly impossible to reproduce consistently and seems to be dependent on a lot of different factors which makes it pretty hard to turn into a bug report.
     
  11. HarryCodder

    HarryCodder

    Joined:
    Feb 20, 2015
    Posts:
    84
    Also it seems to only appear in builds but I might be wrong about that.
     
  12. iscander

    iscander

    Joined:
    Aug 23, 2017
    Posts:
    2
    I have this bug in 5.6.3f1.
     
  13. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,282
    Have you filed a bug report?
     
  14. daoth-gear

    daoth-gear

    Joined:
    Jan 9, 2018
    Posts:
    5
    Hi everyone,
    I'm using dynamic font in our project. Sometime my UI text which used that font turned to BLACK and I can't change it to any other color. I can't reproduce it consistently.
    It will be fixed if I assign "default material" into UI Text component. But I can't choose to do that in our project.
    Any idle to fix this issue?
    Thank you and sorry about my bad Enlgish.
     
  15. zhong317

    zhong317

    Joined:
    Sep 27, 2017
    Posts:
    4
    This bug still exists, I am using 2019.4
     
  16. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,282
    Have you filled a bug report?