SDL_ttf icon indicating copy to clipboard operation
SDL_ttf copied to clipboard

Text is shifted off-center when wrapped using TTF_WRAPPED_ALIGN_CENTER

Open Marmotus opened this issue 10 months ago • 1 comments

Hello! I've been enjoying my time using SDL a bunch and just noticed something that is causing me a slight issue. It seems like spaces are left over when text is wrapped, causing the text to be shifted a bit off-center. I've attached two images that hopefully demonstrate what I mean. The first one is when the text is too short to wrap, and the second one is when the text has been wrapped.

Example 1

Example 2

Would it be possible to change this behavior to trim trailing spaces like that?

Thank you all for the great library, by the way. 🙏😁

Marmotus avatar Apr 02 '24 23:04 Marmotus

Yep!

slouken avatar Apr 03 '24 15:04 slouken