love.graphics.printf() and pixel alignment.

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
User avatar
xpol
Prole
Posts: 14
Joined: Tue May 13, 2014 2:00 am

love.graphics.printf() and pixel alignment.

Post by xpol »

I found that when drawing text will have dirty pixels.
printf.png
printf.png (18.16 KiB) Viewed 2497 times

Is this due to unaligned pixels? How can if fixes this?
User avatar
xpol
Prole
Posts: 14
Joined: Tue May 13, 2014 2:00 am

Re: love.graphics.printf() and pixel alignment.

Post by xpol »

I have fixed the none rotated case by force translation align to pixel.

But the rotated case can't be fixed yet...
Muris
Party member
Posts: 131
Joined: Fri May 23, 2014 9:18 am

Re: love.graphics.printf() and pixel alignment.

Post by Muris »

Do you mean that what you do not like about the text is the anti-aliasing and you want non-antialiased text? Sadly I honestly do not know how to do it, but my guess would be setting some filter to nearest instead of linear.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 5 guests