Releases: libsdl-org/SDL_ttf
2.22.0
2.21.2
This is a release candidate for 2.22.0.
In addition to bug fixes, here are the major changes in this release:
Updated to FreeType version 2.13.2 and HarfBuzz version 8.1.1
2.21.1
This is a release candidate for 2.22.0.
In addition to bug fixes, here are the major changes in this release:
- Updated to FreeType version 2.13.0 and HarfBuzz version 8.1.1
2.20.2
This is a stable bugfix release, with the following changes:
- Fixed building from source without running autogen.sh
2.20.1
This is a quick update to fix building with homebrew on macOS
2.20.0
In addition to new CMake support by @madebr and many bug fixes, here are the highlights since the last release:
- API documentation is now available on the wiki: https://wiki.libsdl.org/SDL_ttf
- 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)
2.19.3
This is hopefully the final release candidate for 2.20.0.
The header documentation has been updated and is available at https://wiki.libsdl.org/SDL_ttf
2.19.2
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)
2.19.1
Early testing pre-release for 2.20.0, not for general use
2.0.18
Changes in this release:
- Added TTF_GetFreeTypeVersion() and TTF_GetHarfBuzzVersion()
- Added support for Signed Distance Field rendering with TTF_SetFontSDF() and TTF_GetFontSDF()
- Added optional DPI-scaling of fonts, with the following new functions:
TTF_OpenFontDPI()
TTF_OpenFontIndexDPI()
TTF_OpenFontDPIRW()
TTF_OpenFontIndexDPIRW()
TTF_SetFontSizeDPI() - Added 32-bit character support with:
TTF_GlyphIsProvided32()
TTF_GlyphMetrics32()
TTF_RenderGlyph32_Solid()
TTF_RenderGlyph32_Shaded()
TTF_RenderGlyph32_Blended()
TTF_GetFontKerningSizeGlyphs32() - Added functions to set direction and script when using Harfbuzz:
TTF_SetDirection()
TTF_SetScript() - Added extended API for text measurement:
TTF_MeasureText()
TTF_MeasureUTF8()
TTF_MeasureUNICODE() - Added TTF_SetFontSize() to set font size dynamically
- Added 'Shaded' and 'Solid' text wrapped functions:
TTF_RenderText_Solid_Wrapped()
TTF_RenderUTF8_Solid_Wrapped()
TTF_RenderUNICODE_Solid_Wrapped()
TTF_RenderText_Shaded_Wrapped()
TTF_RenderUTF8_Shaded_Wrapped()
TTF_RenderUNICODE_Shaded_Wrapped() - Added TTF_HINTING_LIGHT_SUBPIXEL for better results at small text sizes at a performance cost