---
name: "load_grx_font"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/load_grx_font/3alleg4"
---

# load\_grx\_font(3alleg4)

Loads a GRX format font. Allegro game programming library.

## NAME

load\_grx\_font - Loads a GRX format font. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**FONT \*load\_grx\_font(const char \*filename, RGB \*pal, void \*param)**

## DESCRIPTION

Loads a GRX format font. You shouldn't normally call this routine directly.

## RETURN VALUE

Returns a pointer to the font or NULL on error. Remember that you are responsible for destroying the font when you are finished with it to avoid memory leaks.

## SEE ALSO

**register\_font\_file\_type**(3alleg4), **load\_font**(3alleg4)
