---
name: "ALLEGRO_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/ALLEGRO_FONT/3alleg5"
---

# ALLEGRO\_FONT(3alleg5)

Allegro 5 API

## NAME

ALLEGRO\_FONT - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_font.h>
  typedef struct ALLEGRO_FONT ALLEGRO_FONT;
  ```

## DESCRIPTION

A handle identifying any kind of font. Usually you will create it with al\_load\_font(3alleg5) which supports loading all kinds of TrueType fonts supported by the FreeType library. If you instead pass the filename of a bitmap file, it will be loaded with al\_load\_bitmap(3alleg5) and a font in Allegro’s bitmap font format will be created from it with al\_grab\_font\_from\_bitmap(3alleg5).
