---
name: "TTF_FontHasGlyph"
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_FontHasGlyph"
---

# TTF\_FontHasGlyph(3)

Check whether a glyph is provided by the font for a UNICODE codepoint.

## NAME

TTF\_FontHasGlyph - Check whether a glyph is provided by the font for a UNICODE codepoint.

## HEADER FILE

Defined in SDL3\_ttf/SDL\_ttf.h

## SYNOPSIS

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

**bool TTF\_FontHasGlyph(TTF\_Font \*font, Uint32 ch);**

## FUNCTION PARAMETERS

- *font*

  the font to query.

- *ch*

  the codepoint to check.

## RETURN VALUE

Returns true if font provides a glyph for this character, false if not.

## THREAD SAFETY

This function should be called on the thread that created the font.

## AVAILABILITY

This function is available since SDL\_ttf 3.0.0.
