Man page - ttf_getfontstyle(3)
Packages contains this manual
Manual
TTF_GetFontStyle
NAMEHEADER FILE
SYNOPSIS
DESCRIPTION
FUNCTION PARAMETERS
RETURN VALUE
THREAD SAFETY
AVAILABILITY
SEE ALSO
NAME
TTF_GetFontStyle - Query a fontβs current style.
HEADER FILE
Defined in SDL3_ttf/SDL_ttf.h
SYNOPSIS
#include "SDL3_ttf/SDL_ttf.h"
TTF_FontStyleFlags TTF_GetFontStyle(const TTF_Font *font);
DESCRIPTION
The font styles are a set of bit flags, ORβd together:
β’ TTF_STYLE_NORMAL (is zero)
β’ TTF_STYLE_BOLD
β’ TTF_STYLE_ITALIC
β’ TTF_STYLE_UNDERLINE
β’ TTF_STYLE_STRIKETHROUGH
FUNCTION PARAMETERS
|
font |
the font to query. |
RETURN VALUE
( TTF_FontStyleFlags ) Returns the current font style, as a set of bit flags.
THREAD SAFETY
It is safe to call this function from any thread.
AVAILABILITY
This function is available since SDL_ttf 3.0.0.
SEE ALSO
β’ (3), TTF_SetFontStyle (3)