Get the font generation.
Defined in <SDL3_ttf/SDL_ttf.h>
Uint32 TTF_GetFontGeneration(TTF_Font *font);
TTF_Font * | font | the font to query. |
(Uint32) Returns the font generation or 0 on failure; call SDL_GetError() for more information.
The generation is incremented each time font properties change that require rebuilding glyphs, such as style, size, etc.
This function should be called on the thread that created the font.
This function is available since SDL_ttf 3.0.0.