font_has_alpha(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

okay so bestie, welcome to font_has_alpha(3) from the Allegro manual 🌈 this is your group-chat explainer for the tiny little function that does a whole vibe check on a font's pixels πŸ’…


✨ 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 πŸ’–

okay so font_has_alpha literally goes through all pixels of all glyphs in the font and looks for alpha values πŸ‘€βœ¨ it's giving "pixel detective but make it font edition" πŸ”πŸ’…

πŸ‘‘ RETURN VALUE πŸ‘‘

if it finds any alpha pixels, it returns TRUE πŸ’– otherwise it returns FALSE πŸ’€ no in-between, no maybe, just yes/no bestie.

πŸ”₯ SEE ALSO πŸ”₯

is_trans_font(3) β€” go peek at that one too, iykyk 🫢


mwah πŸ’‹ that's the whole page! this was Allegro version 4.4.3, and the footer didn't give a date so I'm not making one up β€” no cap. bye bestie, slay your font pixels πŸŒŸπŸŽ€

πŸ“¦ where this page comes from