Blurry Text, low resolution?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
pestocat
Prole
Posts: 11
Joined: Fri Aug 17, 2018 7:53 pm

Blurry Text, low resolution?

Post 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 2130 times
I have a highDPI monitor, running macos
Attachments
canvas_tests.love.zip
(518.3 KiB) Downloaded 102 times
pestocat
Prole
Posts: 11
Joined: Fri Aug 17, 2018 7:53 pm

Re: Blurry Text, low resolution?

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 193 guests