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

# font\_has\_alpha(3alleg4)

Search all pixels of a font for alpha values. Allegro game programming library.

## NAME

font\_has\_alpha - Search all pixels of a font for alpha values. Allegro game programming library.

## SYNOPSIS

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

**int font\_has\_alpha(FONT \*f)**

## DESCRIPTION

This function goes through all pixels of all glyphs in the font and looks for alpha values.

## RETURN VALUE

Returns TRUE if any alpha pixels are found, else FALSE.

## SEE ALSO

**is\_trans\_font**(3alleg4)
