I can't get rid of the blurred text
Posted: Sun Feb 18, 2024 10:20 am
Hi, I recently started studying LOVE, and have already studied a lot of materials, including forum entries. But I still couldn't figure out why the text is rendered blurry. No advice helps:
1) Round the value of the text coordinates: math.floor(x) math.floor(y) — This does not work, the result has not changed
2) Use a larger font — It doesn't work, the letters are blurred
3) Enable filtering mode: love.graphics.setDefaultFilter("nearest","nearest") — no result
4) Apply a new filtering mode to the Text object:
And this is also absolutely useless, there are no changes. This is very important to me, because there will be a lot of text in my game, it's almost a text quest.
In this picture, you can better see how the text "Press Me!" is blurred.
Please tell me how to make the image as clear as possible so that each pixel is distinguishable?
I decided to make exactly the same button in Gamemaker, the window sizes are identical (800x600), but why is the result so different? Why is the LOVE window bigger than the gamemaker window? Could this be the reason for the blur?
1) Round the value of the text coordinates: math.floor(x) math.floor(y) — This does not work, the result has not changed
2) Use a larger font — It doesn't work, the letters are blurred
3) Enable filtering mode: love.graphics.setDefaultFilter("nearest","nearest") — no result
4) Apply a new filtering mode to the Text object:
Code: Select all
font = love.graphics.newFont("Inter-Regular.ttf", 12)
font:setFilter("nearest","nearest")
In this picture, you can better see how the text "Press Me!" is blurred.
Please tell me how to make the image as clear as possible so that each pixel is distinguishable?
I decided to make exactly the same button in Gamemaker, the window sizes are identical (800x600), but why is the result so different? Why is the LOVE window bigger than the gamemaker window? Could this be the reason for the blur?