Search Unity

TextMesh Pro TMP Bitmap Hinted Raster broken and TMP Hinted Smooth blurry (small fonts)

Discussion in 'UGUI & TextMesh Pro' started by zugzwang, May 17, 2018.

  1. zugzwang

    zugzwang

    Joined:
    Jan 12, 2011
    Posts:
    24
    Unity 2018.1.0f2 (64bit)
    TextMesh Pro 1.2.2

    Canvas config:
    • Screen Space - Overlay
    • Pixel Perfect
    • Canvas Scaler: Constant Pixel Size (scale factor 1)
    Color Space: linear

    I can't achieve good quality with TextMesh Pro for small fonts (~12pt). The best I can get is with Unity's default UI Text/Font using Hinted Smooth as the Rendering Mode.

    LiberationSans-small-text.png

    Am I doing something wrong?
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    If you switch the Unity Font to Hinted Raster + Unicode, do you see the same vertical shift in the text?

    Here is the settings I just tested
    upload_2018-5-17_16-39-34.png
     
  3. zugzwang

    zugzwang

    Joined:
    Jan 12, 2011
    Posts:
    24
    Hi Stephan,

    I've updated the Unity Font with your settings, then recreated the TMP Font Asset, and the shifting still occurs.
     
  4. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    What I meant is the shift also occurs with UI.Text. I am looking for confirmation that you are also seeing this shift with UI. Text with the settings above. It appears this behavior might be related to Freetype and its handling of Hinted Raster.
     
  5. zugzwang

    zugzwang

    Joined:
    Jan 12, 2011
    Posts:
    24
    UI.Text renders correctly with Hinted Raster + Unicode/Dynamic.
    It renders like the upper right example in the picture I have uploaded above .
     
  6. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    Just letting you know that I am looking into this rendering issue. I'll provide an update as soon as I have more information.