Open ericabxy opened 2 years ago
Could you provide a test for this?
Yes. I wrote a test using a font meant for uniform -1 kerning, demonstrating the results of constructing the font with several different "extraspacing" arguments.
You're right, I need to fix this.
This issue appears to have been fixed by https://github.com/libretro/libretro-lutro/commit/e9395ab4549b74670598d811ca8094be513c4c5c Running the test file with the latest code using Lutro and LÖVE results in the same behavior in all four test cases. I'm trying to upload a slightly updated test file in case anyone else needs to test.
extraspacing.zip Here is the new test file. It has no subfolder so be careful when extracting, or simply rename it to extraspacing.love or extraspacing.lutro to use it.
Fonts created with love.graphics.newImageFont automatically have 1 pixel of extra spacing. This is different from the default behavior of LÖVE which is 0 extra spacing. Furthermore, Lutro does not recognize the extraspacing argument, so there is no way for content to correct this behavior.