Adjust the parameters of the outline of the font material for the letters to be displayed using Text Mesh Pro.
And also change the Dilate of the Face of the material so that the letters will not be too thin.
However, if the outline and Dilate values are changed and the font size is smaller, the text will have a black, garbage-like background.
See the following image.
This is not shown in scene view, but in game view.
And it shows up when you run the build. I wish it was the other way around.
How can I stop this black garbage in the background from showing up?
Try increasing the Font Padding value in your font asset. Padding is needed to create room for the SDF gradient. (It’s the Sampling Point Size : Padding ratio that’s important. Higher % reduces artefacts)