ttfGetNumFontFaces function ttf
Query the number of faces of a font.
\param font the font to query. \returns the number of FreeType font faces.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL_ttf 3.0.0.
extern SDL_DECLSPEC int SDLCALL TTF_GetNumFontFaces(const TTF_Font *font)
Implementation
int ttfGetNumFontFaces(Pointer<TtfFont> font) {
final ttfGetNumFontFacesLookupFunction = _libTtf
.lookupFunction<
Int32 Function(Pointer<TtfFont> font),
int Function(Pointer<TtfFont> font)
>('TTF_GetNumFontFaces');
return ttfGetNumFontFacesLookupFunction(font);
}