TTF_FontStyleFlags.3type - Man Page

Font style flags for TTF_Font

Header File

Defined in SDL3_ttf/SDL_ttf.h

Synopsis

#include "SDL3_ttf/SDL_ttf.h"

typedef Uint32 TTF_FontStyleFlags;

#define TTF_STYLE_NORMAL        0x00 /**< No special style */
#define TTF_STYLE_BOLD          0x01 /**< Bold style */
#define TTF_STYLE_ITALIC        0x02 /**< Italic style */
#define TTF_STYLE_UNDERLINE     0x04 /**< Underlined text */
#define TTF_STYLE_STRIKETHROUGH 0x08 /**< Strikethrough text */

Description

These are the flags which can be used to set the style of a font in SDL_ttf. A combination of these flags can be used with functions that set or query font style, such as TTF_SetFontStyle
or

TTF_GetFontStyle .

Availability

This datatype is available since SDL_ttf 3.0.0.

See Also

·(3), TTF_SetFontStyle(3), ·(3), TTF_GetFontStyle(3)

Info

SDL_ttf 3.2.2 SDL_ttf3 DATATYPES