Announcing the SDL_ttf 3 official release!
SDL_ttf 3.0 is finally here!
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
We've also updated the installation instructions and added a quick reference guide:
https://wiki.libsdl.org/SDL3_ttf
Enjoy!