SDL_ttf 2.19.2 PRERELEASE

SDL_ttf 2.19.2 is now available as a PRERELEASE build:

This is a release candidate for 2.20.0.

In addition to new CMake support by @madebr and many bug fixes, here are the highlights since the last release:

  • Added TTF_GetFontWrappedAlign() and TTF_SetFontWrappedAlign() to set alignment on wrapped text
  • Added functions to render using FreeType LCD algorithm:
    TTF_RenderText_LCD()
    TTF_RenderUTF8_LCD()
    TTF_RenderUNICODE_LCD()
    TTF_RenderText_LCD_Wrapped()
    TTF_RenderUTF8_LCD_Wrapped()
    TTF_RenderUNICODE_LCD_Wrapped()
    TTF_RenderGlyph_LCD()
    TTF_RenderGlyph32_LCD()
  • Added TTF_SetFontDirection() and TTF_SetFontScriptName() for additional control over fonts using HarfBuzz
  • Updated to FreeType version 2.12.1 and HarfBuzz version 2.9.1, fixing CVE-2018-25032
  • Fixed crash when loading fonts at certain sizes on Windows
  • Fix memory corruption loading malformed TTF files (CVE-2022-27470)
1 Like

Are these functions now documented? I couldn’t find anything in the docs when I last looked. An example of how to use them would be very welcome.

The old documentation is deprecated and we’re working on new Wiki documentation for the release.

1 Like

The hopefully final release candidate for 2.20.0 is now available: