Poor quality of sprites from Sprite Asset

Hi,

I am using TMP_Sprite Asset with icons from my Texture 2D object.
Unfortunately, the quality of sprites in TextMeshPro - Text (UI) object is quite poor, especially for small font size.
Additionaly, on different texts the same icons look really different.

Here are sample icons from my texture in TMP_Sprite Asset:
9829911--1413636--upload_2024-5-12_14-1-33.png
And here are those icons in the TextMeshPro component with font size 16
(top from left 149, 94, 150; bottom from left 148, 147):
9829911--1413615--upload_2024-5-12_13-49-59.png 9829911--1413618--upload_2024-5-12_13-50-13.png 9829911--1413621--upload_2024-5-12_13-50-27.png 9829911--1413624--upload_2024-5-12_13-50-50.png
The problem is especially visible on objects 150 and 148.

Can I somehow increase the quality of those sprites in Text?

Anyone got any tip? If I set the font size to 28 it looks perfect, but with 16 it looks really bad.
And I don’t think this is just a problem with the small image - I opened the same image and scaled it down to a similar size, and it looks much better than in the game and definitely much more consistent:
9853791--1418847--upload_2024-5-24_20-9-50.png
So the problem is with the rendering in Unity or the way I configured/imported the Sprite Asset

I made some experimenting on the texture.
Changing “Filter Mode” to Bilinear or Trilinear makes it look better.
Enabling “Generate Mip Maps” makes it less deformed but instead more blurry.

1 Like