SDL Wiki
(This function is part of SDL_ttf, a separate library from SDL.)

TTF_FontStyleFlags

Font style flags for TTF_Font

Header File

Defined in <SDL3_ttf/SDL_ttf.h>

Syntax

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 */

Remarks

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.

Version

This function is available since SDL_ttf 3.0.0.

See Also


CategoryAPI, CategoryAPIDatatype, CategorySDLTTF


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.