---
name: "al_set_fallback_font"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_set_fallback_font/3alleg5"
---

# al\_set\_fallback\_font(3alleg5)

Allegro 5 API

## NAME

al\_set\_fallback\_font - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_font.h>
  void al_set_fallback_font(ALLEGRO_FONT *font, ALLEGRO_FONT *fallback)
  ```

## DESCRIPTION

Sets a font which is used instead if a character is not present. Can be chained, but make sure there is no loop as that would crash the application! Pass NULL to remove a fallback font again.

## SINCE

5\.1.12

## SEE ALSO

al\_get\_fallback\_font(3alleg5), al\_draw\_glyph(3alleg5), al\_draw\_text(3alleg5)
