Releases: libsdl-org/SDL_ttf
3.1.0
Announcing the SDL_ttf 3.1.0 Stable ABI Preview!
Here are some of the highlights of what's new:
- Updated for SDL 3.0
- Added the concept of a text object and text engine, which is able to efficiently render text for a variety of output methods
- Added TTF_CreateSurfaceTextEngine() and TTF_DrawSurfaceText() for drawing text to SDL_Surface output
- Added TTF_CreateRendererTextEngine() and TTF_DrawRendererText() for drawing text to SDL_Renderer output
- Added TTF_CreateGPUTextEngine() and TTF_GetGPUTextDrawData() for drawing text to SDL_GPU output
- Made the text engine API public in <SDL3_ttf/SDL_textengine.h> so you can integrate text objects into custom font display solutions
- Added TTF_CopyFont() to allow you to easily make fonts of different sizes
- Added TTF_AddFallbackFont() to allow combining fonts with distinct glyph support
- Added support for OT-SVG fonts, which are useful as fallback fonts for color emoji support
- Updated SDF font support and added an example of using it with the SDL GPU API
Please let us know what you think, and report any issues on GitHub:
https://github.com/libsdl-org/SDL_ttf/issues
2.24.0
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.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)