---
name: "al_set_fallback_font"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_set_fallback_font"
---

# al\_set\_fallback\_font(3)

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(3)](/al_get_fallback_font/3.md), [al\_draw\_glyph(3)](/al_draw_glyph/3.md), [al\_draw\_text(3)](/al_draw_text/3.md)
