Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

TTF_GetFontGeneration - Get the font generation.

Availability

       This function is available since SDL_ttf 3.0.0.

SDL_ttf                                           SDL_ttf 3.2.2                         TTF_GetFontGeneration(3)

Description

       The  generation  is  incremented each time font properties change that require rebuilding glyphs, such as
       style, size, etc.

Function Parameters

font   the font to query.

Header File

       Defined in SDL3_ttf/SDL_ttf.h

Name

       TTF_GetFontGeneration - Get the font generation.

Return Value

       Returns the font generation or 0 on failure; call SDL_GetError() for more information.

Synopsis

#include"SDL3_ttf/SDL_ttf.h"Uint32TTF_GetFontGeneration(TTF_Font*font);

Thread Safety

       This function should be called on the thread that created the font.

See Also