SDL_ttf 3.0 is finally here!
The biggest change in this release is the addition of a text engine, which allows dynamic glyph caching, automatically updating text as fonts change, and flexible display output. We include 3 built-in engines which allow displaying to SDL surfaces, using the SDL 2D render API, and using the SDL GPU API, but the engine framework can be extended by applications and libraries for any display system. You can also easily copy fonts to customize size and style, and set fallback fonts to handle text with mixed languages and emoji.
The examples directory has a complete editbox implementation that you can add to your application and customize:
We’ve also updated the installation instructions and added a quick reference guide:
Enjoy!