---
name: "is_trans_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_trans_font/3alleg4"
---

# is\_trans\_font(3alleg4)

Returns TRUE if a font uses transparency. Allegro game programming library.

## NAME

is\_trans\_font - Returns TRUE if a font uses transparency. Allegro game programming library.

## SYNOPSIS

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

**int is\_trans\_font(FONT \*f)**

## DESCRIPTION

This function checks if the given font is a color font using draw\_trans\_sprite to render glyphs.

## RETURN VALUE

Returns TRUE if the font uses transparency, FALSE if it does not.

## SEE ALSO

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