How do I fix this weird jagged outline on my TM pro text?

Hey everyone,

I am using the official Roboto Regular font from Google Fonts, so I don’t think this has anything to do with the font. I attached two images below showing the problem:


In one of them, I have the Dilate and Outline options enabled, which only makes it a lot more noticeable. But even without those two options, there are still irregular bits in the text. I was wondering if there’s a way to fix this completely and make the text smooth.

This is more or less result of how TextmeshPro SDF rendering works. With bitmap fonts when scaling them they either get pixelated or blurry depending on setup, while SDF allows you to scale them further while staying sharp but there will still be defects. The defects from excessive scaling look different than with other font rendering techniques but they are still there.

You can mitigate this problem by increasing “Sampling point size” in TMP font asset config but that will also increase VRAM usage so do it within reason. Only for the fonts that you are going to render that big. Don’t stress too much about it if it’s only visible while zooming in using Unity Editor beyond what they player will be able to see during normal gameplay.

1 Like

Thank you for the insight!