logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

TTF_GetFontStyleName - Query a font's style name.

Availability

       This function is available since SDL_ttf 3.0.0.

SDL_ttf                                           SDL_ttf 3.2.2                          TTF_GetFontStyleName(3)

Description

       This string is dictated by the contents of the font file.

       Note that the returned string is to internal storage, and should not be modified or free'd by the caller.
       The string becomes invalid, with the rest of the font, when font is handed to TTF_CloseFont ().

Function Parameters

font   the font to query.

Header File

       Defined in SDL3_ttf/SDL_ttf.h

Name

       TTF_GetFontStyleName - Query a font's style name.

Return Value

       Returns the font's style name.

Synopsis

#include"SDL3_ttf/SDL_ttf.h"constchar*TTF_GetFontStyleName(constTTF_Font*font);

Thread Safety

       It is safe to call this function from any thread.

See Also