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