Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Some fonts have huge margins when using Auto-Size

Discussion in 'UGUI & TextMesh Pro' started by lion422, Jan 31, 2024.

  1. lion422

    lion422

    Joined:
    Aug 4, 2020
    Posts:
    11
    When I use this font asset with auto-size on, it will always fill up not even 50% of the vertical space.

    Here is Baloo Paaji 2 on the left, and LilitaOne on the right, both TMP font assets freshly created with the same settings.

    It does the same with Legacy Text components with Best Fit on. It seems to come from the ttf file's ascent and descent lines.

    Is there a way to counteract this in TextMeshPro, to let the text really fill the RectTransform?

    image (1).png