Search Unity

  1. Get all the Unite Berlin 2018 news on the blog.
    Dismiss Notice
  2. Unity 2018.2 has arrived! Read about it here.
    Dismiss Notice
  3. We're looking for your feedback on the platforms you use and how you use them. Let us know!
    Dismiss Notice
  4. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  6. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  7. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  8. 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,518
    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,518
    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,518
    Just letting you know that I am looking into this rendering issue. I'll provide an update as soon as I have more information.