1
votes

I've read that Unity has problems rendering clear text and I've tried out several different fixes: setting a large font size on the imported font and changing the character setting to unicode, making the text size large and then scaling it down, setting filter mode to point when it comes to pixel fonts... All these methods seem to work from the editor (as in, the text appears crisp), but in the game the text is still blurry:

editor view

vs.

game view

(The screenshot is using free aspect - the text looks better, but still somewhat blurry, when the game view resolution matches the reference resolution.)

Currently, the imported font (not pixel) is set to a size of 180; rendering to smooth; character to unicode. The text isn't scaled right now and is at a size of 50. The canvas is set to scale with screen size, and the reference resolution is 2560x1440 (a Samsung S7). It should also be noted that at a different resolution, the box around the text (which is an image) also gets blurry, which makes me think it's a problem with the canvas scaling.

What am I missing?

3
have you tried messing with pixels per unit mad.meesh
Also, scaling the text up causes it to display the pixels at a larger size, with very little inter-pixel smoothing. I almost always scale my text down.Draco18s no longer trusts SE
@mad.meesh it doesn't appear to make a difference...Technicolor
@Draco18s the font size is set to be large, but the text element itself is scaled down (at least when I was experimenting with that method). In all cases, the text looked fine in the editor (even when zooming in) but got blurry in the actual game.Technicolor
Would you mind showing a not zoomed image from your game view? And the same spot, with closely matching zoom, from, the scene view?Draco18s no longer trusts SE

3 Answers

3
votes

Turns out all I had to do was uncheck Low Resolution Aspect Ratios in the game view... The text is still slightly blurry, but likely that's typical of Unity. To counter that, I just decided to use a pixel font (using the fix explained in this video).

1
votes

Unity UI.Text Blurry Fix

I use scaling down as a workaround.

0
votes

For me, it was using Unity-Remote. After building the app directly I didn't see the blur anymore.