table of contents
other versions
- experimental 3~git20240320~6e260a2+ds-1
TTF_GetFontStyle(3) | SDL_ttf3 FUNCTIONS | TTF_GetFontStyle(3) |
NAME¶
TTF_GetFontStyle - Query a font's current style.
SYNOPSIS¶
#include "SDL3_ttf/SDL_ttf.h"
int 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¶
Returns the current font style, as a set of bit flags.
AVAILABILITY¶
This function is available since SDL_ttf 3.0.0.
SEE ALSO¶
SDL_ttf 3.0.0 | SDL_ttf |