libsdl-org / SDL_ttf

Support for TrueType (.ttf) font files with Simple Directmedia Layer.
zlib License
403 stars 131 forks source link

Fonts render differently with SDL3. #369

Closed mold-boy closed 2 months ago

mold-boy commented 4 months ago

The first screenshot is SDL2:

Screenshot 2024-07-12 at 3 51 47 PM

The second screenshot is SDL3:

Screenshot 2024-07-12 at 3 51 22 PM
slouken commented 4 months ago

Can you attach a test program and the fonts you're using?

mold-boy commented 4 months ago

I wrote a test program and it rendered perfect with SDL2 and SDL3. I review the game code and realized this is a SDL_Texture scaling difference between SDL2 and SDL3. We will need to rewrite some of that code to obtain our preferred font sizes.

slouken commented 4 months ago

If you're referring to the logical presentation mode differences, we're looking at making SDL3 work like SDL2 again. @icculus signed up for that work. :)

slouken commented 2 months ago

This should be fixed in the latest SDL3 code.