Wow, this looks like a really nice feature packed release!
I’ve been playing around with the wrapped text functions, and I’m concerned about how they handle small wrap values.
At wrap length 0, the text renders as a single line, and newline characters are still rendered as unknown characters. I expected this to behave like the normal text rendering functions but newline aware.
With a positive but very small wrap length, the text doesn’t fully show up. Or parts of letters might show up. I expected this to allocate at least enough space to put at least one character of the input string on each line.
Maybe create a separate issue.
Just try with latest and
It seems like size == 16 to me ?
I got the same difference when switching from Hinting mono vs none.
(“mono” would look like the 2.0.15, whereas 2.0.18 looks “none”).
I think it’s probably a FreeType issue rather than SDL2_ttf. My 2.0.15 is using FreeType 2.4.12 (it’s a separate DLL) whereas 2.0.18 seems to have FreeType statically linked. I don’t know how to discover the version, because seemingly ‘FT_Library_Version()’ isn’t exported.
I got the same difference when switching from Hinting mono vs none