Page 1 of 1

Blurry Text, low resolution?

Posted: Mon Nov 19, 2018 7:02 am
by pestocat
I'm having trouble getting this any font to look good in my game. Attached are a test file and a screenshot to demonstrate.

This is pretty much all that is happening:
font = lg.newFont("bold.ttf", 16)
lg.print("this is some words", 200, 200)

I will note that I have tried setDefaultFilter("nearest","nearest") and ("linear","linear)

The screen shot is a closeup of the game window next to my browser. You can see how much cleaner the text in my browser looks (on this forum) than the text in my game. It almost seems like love2d is running at a lower resolution than my browser?
Screen Shot 2018-11-19 at 12.43.12 AM.png
Screen Shot 2018-11-19 at 12.43.12 AM.png (17.29 KiB) Viewed 2229 times
I have a highDPI monitor, running macos

Re: Blurry Text, low resolution?

Posted: Mon Nov 19, 2018 7:05 am
by pestocat
Figured it out!

function love.conf(t)

end

has to be in conf.lua I guess...
I put t.window.highdpi = true
in there and now it looks very smooth.