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

# font\_has\_alpha(3alleg)

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**(3alleg)](/is_trans_font/3alleg.md)
