al_init_ttf_addon(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

al_init_ttf_addon β€” it's part of the Allegro 5 API, bestie πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro5/allegro_ttf.h>

bool al_init_ttf_addon(void)

🌸 DESCRIPTION 🌸

okay so, you gotta call this one after al_init_font_addon(3alleg5), no cap. What it does is make al_load_font(3alleg5) actually recognize ".ttf" files β€” and like, all the other formats that al_load_ttf_font(3alleg5) supports too πŸ¦‹

Basically: font addon first, ttf addon second. That's the order, periodt.

It returns true when everything goes right and false when it doesn't. That's it, that's the whole vibe check πŸ’…

lowkey important: don't skip the al_init_font_addon(3alleg5) step, bestie β€” this addon is the glow-up on top of it, not a replacement 🫢

🧚 SEE ALSO 🧚

Hmm, this page doesn't list any SEE ALSO entries of its own β€” but the descriptions above do shout out al_init_font_addon(3alleg5), al_load_font(3alleg5) and al_load_ttf_font(3alleg5), so go say hi to those πŸ‘‘


and that's the whole page, gorgeous ✨ it's from the Allegro reference manual, for version 3alleg5, and yeah the source line is literally just that β€” al_init_ttf_addon(3alleg5) in the Allegro reference manual, no date on it, iconic of it honestly πŸ’€πŸ’– go forth and load those fonts, main character πŸŽ€πŸŒˆ

πŸ“¦ where this page comes from