---
name: "TTF_GetFontStyle"
section: "3"
platform: "linux"
package: "libsdl3-ttf-doc"
version: "3.2.2+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/TTF_GetFontStyle"
---

# TTF\_GetFontStyle(3)

Query a font's current style.

## NAME

TTF\_GetFontStyle - Query a font's current style.

## HEADER FILE

Defined in SDL3\_ttf/SDL\_ttf.h

## SYNOPSIS

```
#include "SDL3_ttf/SDL_ttf.h"
```

**TTF\_FontStyleFlags TTF\_GetFontStyle(const TTF\_Font \*font);**

## DESCRIPTION

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**

## FUNCTION PARAMETERS

- *font*

  the font to query.

## RETURN VALUE

( **TTF\_FontStyleFlags** ) Returns the current font style, as a set of bit flags.

## THREAD SAFETY

It is safe to call this function from any thread.

## AVAILABILITY

This function is available since SDL\_ttf 3.0.0.

## SEE ALSO

**•**(3), [**TTF\_SetFontStyle**(3)](/TTF_SetFontStyle/3.md)
