[SOLVED] Small font "bleeding"

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
alberto_lara
Party member
Posts: 372
Joined: Wed Oct 30, 2013 8:59 pm

[SOLVED] Small font "bleeding"

Post by alberto_lara »

I installed LÖVE in DietPi (Raspbian based) and I'm getting now some bleeding for fonts, specially noticeable in pixelated fonts:

Image

Some more info:

* Using integer coordinates for the text
* I've tried this font in other places outside LÖVE and it works fine, so not the font (Proggy Clean)
* LÖVE was installed via retropie_setup.sh script (optional packages)
* Both 0.10.2 and 11.4 were tested
* I'm using a scaled canvas with nearest filtering (pixel-perfect scaling)
* This is Raspberry Pi 3b+

I'd give you the .love file but it won't work right away just like that (I'm building a RetroPie-based distro with LÖVE as the UI to run the games, so this was built to run in that context)

Thanks in advance for any tip!

EDIT: I'll try to upload the link to a .img file for the RB Pi, it should not be more than 1 GB compressed I think
Last edited by alberto_lara on Tue Mar 16, 2021 3:48 pm, edited 1 time in total.
User avatar
darkfrei
Party member
Posts: 1174
Joined: Sat Feb 08, 2020 11:09 pm

Re: Small font "bleeding"

Post by darkfrei »

I have the same problem too, some sizes are almost perfect, but other sizes are totally not sharp.
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
pgimeno
Party member
Posts: 3549
Joined: Sun Oct 18, 2015 2:58 pm

Re: Small font "bleeding"

Post by pgimeno »

If it's a pixellated font, maybe you can use Font:setFilter?

NB. To reproduce, I guess we would only need a very basic main.lua with lg.newFont, lg.setFont, and lg.print calls (and the font itself).
User avatar
alberto_lara
Party member
Posts: 372
Joined: Wed Oct 30, 2013 8:59 pm

Re: Small font "bleeding"

Post by alberto_lara »

Duh! I forgot fonts also have the filtering thing, that was it, thanks a lot!
I used

Code: Select all

font:setFilter('nearest', 'nearest')
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests