---
name: "TTF_GetFontProperties"
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_GetFontProperties"
---

# TTF\_GetFontProperties(3)

Get the properties associated with a font.

## NAME

TTF\_GetFontProperties - Get the properties associated with a font.

## HEADER FILE

Defined in SDL3\_ttf/SDL\_ttf.h

## SYNOPSIS

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

**SDL\_PropertiesID TTF\_GetFontProperties(TTF\_Font \*font);** **#define TTF\_PROP\_FONT\_OUTLINE\_LINE\_CAP\_NUMBER**           *SDL\_ttf.font.outline.line\_cap"* **#define TTF\_PROP\_FONT\_OUTLINE\_LINE\_JOIN\_NUMBER**          *SDL\_ttf.font.outline.line\_join"* **#define TTF\_PROP\_FONT\_OUTLINE\_MITER\_LIMIT\_NUMBER**        *SDL\_ttf.font.outline.miter\_limit"*

## DESCRIPTION

The following read-write properties are provided by SDL:

•  **TTF\_PROP\_FONT\_OUTLINE\_LINE\_CAP\_NUMBER** :\
   The FT\_Stroker\_LineCap value used when setting the font outline, defaults\
   to **FT\_STROKER\_LINECAP\_ROUND** .

•  **TTF\_PROP\_FONT\_OUTLINE\_LINE\_JOIN\_NUMBER** :\
   The FT\_Stroker\_LineJoin value used when setting the font outline,\
   defaults to **FT\_STROKER\_LINEJOIN\_ROUND** .

•  **TTF\_PROP\_FONT\_OUTLINE\_MITER\_LIMIT\_NUMBER** :\
   The FT\_Fixed miter limit used when setting the font outline, defaults to\
   0\.

## FUNCTION PARAMETERS

- *font*

  the font to query.

## RETURN VALUE

Returns a valid property ID on success or 0 on failure; call SDL\_GetError() for more information.

## THREAD SAFETY

It is safe to call this function from any thread.

## AVAILABILITY

This function is available since SDL\_ttf 3.0.0.
