TTF_FontStyleFlags(3type)

🌸 TTF_FontStyleFlags β€” like, the vibe flags for your font πŸ’…

okay bestie, welcome to TTF_FontStyleFlags(3type) from the SDL_ttf3 DATATYPES section πŸŽ€ this is the whole entire personality quiz for your font's looks, no cap.


✨ NAME ✨

TTF_FontStyleFlags β€” Font style flags for TTF_Font πŸ¦‹


πŸŽ€ HEADER FILE πŸŽ€

Defined in SDL3_ttf/SDL_ttf.h β€” that's the file you gotta include, periodt.


πŸ’– 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 πŸ¦‹

so these are the flags you use to set the style of a font in SDL_ttf ✨ and the slay part? you can combine them β€” stack them like accessories πŸ’… β€” and hand that combo to the functions that set or query font style, like TTF_SetFontStyle or TTF_GetFontStyle.

like, mix and match, it's giving build-your-own-outfit but for text πŸ’–


🌈 AVAILABILITY 🌈

This datatype has been available since SDL_ttf 3.0.0 β€” an icon from day one, fr fr πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ


and that's the whole page bestie, go style something gorgeous 🫢

mwah πŸ’‹ this has been SDL_ttf, version 3.2.2 β€” TTF_FontStyleFlags(3type), signing off, love u bye πŸ˜­πŸ’–

πŸ“¦ where this page comes from