setStyle method
Set a font's current style.
This updates any TTF_Text objects using this font, and clears already-generated glyphs, if any, from the cache.
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
\param font the font to set a new style on. \param style the new style values to set, OR'd together.
\threadsafety This function should be called on the thread that created the font.
\since This function is available since SDL_ttf 3.0.0.
\sa TTF_GetFontStyle
extern SDL_DECLSPEC void SDLCALL TTF_SetFontStyle(TTF_Font *font, int style)
Implementation
void setStyle(int style) {
ttfSetFontStyle(this, style);
}