Comment 17 for bug 536461

Revision history for this message
SirVer (sirver) wrote :

Should be fixed r8168.

> is that the font renderer is working on a float value for the font size that should be an int instead.

Pretty close - the problem was that text was not aligned with screen pixels. For example if we centered an image that contained text that was 11 pixels wide, we would try to draw it at pos.x - 5.5f. That sounds like the correct thing to do in general, but it makes OpenGL subsample the image - which leads to bluriness. For images (for example stones on the map) we do require subpixel rendering to not make things jump while panning though, so the floats are still required.

I fixed the code to align texts always to screen pixels - I hope I found all places.