Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

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

Discussion in 'Unity UI & 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

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    1,723
    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

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    1,723
    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

    Unity Technologies

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