---
name: "is_trans_font"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/is_trans_font"
---

# is\_trans\_font(3alleg)

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**(3alleg)](/make_trans_font/3alleg.md), [**is\_color\_font**(3alleg)](/is_color_font/3alleg.md), [**is\_mono\_font**(3alleg)](/is_mono_font/3alleg.md)
