ttfGetFontStyle function
Query a font's current style.
The font styles are a set of bit flags, OR'd together:
TTF_STYLE_NORMAL(is zero)TTF_STYLE_BOLDTTF_STYLE_ITALICTTF_STYLE_UNDERLINETTF_STYLE_STRIKETHROUGH
\param font the font to query. \returns the current font style, as a set of bit flags.
\since This function is available since SDL_ttf 2.0.12.
\sa TTF_SetFontStyle
extern DECLSPEC int SDLCALL TTF_GetFontStyle(const TTF_Font *font)
Implementation
int ttfGetFontStyle(Pointer<TtfFont> font) {
final ttfGetFontStyleLookupFunction = libSdl2Ttf.lookupFunction<
Int32 Function(Pointer<TtfFont> font),
int Function(Pointer<TtfFont> font)>('TTF_GetFontStyle');
return ttfGetFontStyleLookupFunction(font);
}