Search Unity

Button fonts on Mac build do not render properly

Discussion in 'UGUI & TextMesh Pro' started by declanshanaghy, Apr 1, 2021.

  1. declanshanaghy

    declanshanaghy

    Joined:
    Nov 5, 2020
    Posts:
    6
    This project has been mainly developed on windows and works just fine.
    I just recently opened it on my mac and made a build.

    While playing in the editor it's fine, it's only when i build it that it gets screwed up.
    The font is unreadable, even though it's Arial Regular, which definitely exists.

    With all my Google searches so far this doesn't seem to be a common issue?
    I'm at a loss as to what it could be, do you have any ideas?

    Thanks,
    Dek
     

    Attached Files:

  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    It looks like you are using TMP.

    I suspect you are also using a CanvasScaler resulting in the SDF Scale not getting updated correctly.

    Assuming the above is correct. For testing purposes, I would suggest switching the shader on the material preset used by those text objects to the SSD variant. These shaders are included in the TMP Essential Resources and have the suffix SSD in their name. There is a mobile and full features variant.

    Please let me know if switching to the SSD shader results in the text rendering correctly?