Search Unity

Text Formatting Issues with TextMeshProUGUI (Only bold format)

Discussion in 'UGUI & TextMesh Pro' started by Avalin, Feb 6, 2021.

  1. Avalin

    Avalin

    Joined:
    Oct 12, 2018
    Posts:
    98
    I am trying to use Chevy Ray's pixel fonts with TMP, though they are originally made for native Text.

    Here's the settings I used when using the Font Asset Creator for the ttf:
    upload_2021-2-6_13-3-16.png


    And although it works fine when I don't use formatting, this is what happens when I try to make the text bold:
    upload_2021-2-6_12-43-22.png

    And the anticipated look, from native Text:

    upload_2021-2-6_12-43-57.png

    Anyone with an idea what I can do to make formatting of these pixel fonts work properly with TMP?
     
    Last edited: Feb 6, 2021
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    The amount of additional spacing added between characters when using Regular and Bold typeface can be adjusted per font asset as seen below.

    upload_2021-2-6_14-39-18.png

    Since the sampling point size of your font asset is very small at 10 pts, you will need to adjust this default value of 7 to something smaller.
     
    Avalin likes this.