al_create_builtin_font(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’– NAME πŸ’–

al_create_builtin_font β€” Allegro 5 API. This page comes from the Library Functions Manual, and it's literally about summoning a built-in font out of thin air. Slay. ✨

πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro5/allegro_font.h>

ALLEGRO_FONT *al_create_builtin_font(void)

🌸 DESCRIPTION 🌸

Okay so al_create_builtin_font creates a monochrome bitmap font where every character is 8x8 pixels. Iconic. πŸ’…

This font is primarily intended to be used for displaying information in environments or during early runtime states where no external font data is available or loaded β€” like, for debugging. It's your emergency font bestie. 🫢

The builtin font contains the following unicode character ranges:

0x0020 to 0x007F (ASCII)
0x00A1 to 0x00FF (Latin 1)
0x0100 to 0x017F (Extended A)
0x20AC to 0x20AC (euro currency symbol)

It returns NULL on an error. Not the vibe, but important. 😭

The font memory must be freed the same way as for any other font, using al_destroy_font(3). Do not ghost your fonts, bestie β€” clean up. 🧚

πŸ¦‹ SINCE πŸ¦‹

5.0.8, 5.1.3 β€” so it's been around for a minute. πŸ‘‘

🌈 SEE ALSO 🌈


And that's the whole page, bestie. Sourced from the Allegro reference manual β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms