ttfGetFontWeight function ttf
Query a font's weight, in terms of the lightness/heaviness of the strokes.
\param font the font to query. \returns the font's current weight.
\threadsafety This function should be called on the thread that created the font.
\since This function is available since SDL_ttf 3.2.2.
extern SDL_DECLSPEC int SDLCALL TTF_GetFontWeight(const TTF_Font *font)
Implementation
int ttfGetFontWeight(Pointer<TtfFont> font) {
final ttfGetFontWeightLookupFunction = _libTtf
.lookupFunction<
Int32 Function(Pointer<TtfFont> font),
int Function(Pointer<TtfFont> font)
>('TTF_GetFontWeight');
return ttfGetFontWeightLookupFunction(font);
}