---
name: "is_compatible_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/is_compatible_font/3alleg4"
---

# is\_compatible\_font(3alleg4)

Check if two fonts are of the same type. Allegro game programming library.

## NAME

is\_compatible\_font - Check if two fonts are of the same type. Allegro game programming library.

## SYNOPSIS

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

**int \*is\_compatible\_font(FONT \*f1, FONT \*f2)**

## DESCRIPTION

This function compares the two fonts, which you can use to find out if Allegro is capable of merging them.

## RETURN VALUE

Returns TRUE if the two fonts are of the same general type (both are color fonts or both are monochrome fonts, for instance).

## SEE ALSO

**merge\_fonts**(3alleg4), **is\_trans\_font**(3alleg4), **is\_color\_font**(3alleg4), **is\_mono\_font**(3alleg4)
