TTF_GetFontFamilyName(3)

TTF_GetFontFamilyName3

Query a font's family name.

Usage

#include "SDL3_ttf/SDL_ttf.h"

const char * TTF_GetFontFamilyName(const TTF_Font *font);

Header file

Defined in SDL3_ttf/SDL_ttf.h

Overview

This string is dictated by the contents of the font file.

Note that the returned string is to internal storage, and should not be modified or free'd by the caller. The string becomes invalid, with the rest of the font, when font is handed to TTF_CloseFont ().

Function parameters

font

the font to query.

Return value

Returns the font's family name.

Thread safety

It is safe to call this function from any thread.

Availability

This function is available since SDL_ttf 3.0.0.

From libsdl3-ttf-doc 3.2.2+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.