al_create_builtin_font(3alleg5)
π al_create_builtin_font β Allegro 5 API π
okay bestie, listen up, this one's from the Allegro 5 API and it's lowkey a lifesaver π«Ά
β¨ SYNOPSIS β¨
#include <allegro5/allegro_font.h>
ALLEGRO_FONT *al_create_builtin_font(void)
πΈ DESCRIPTION πΈ
So like. This function literally creates a monochrome bitmap font β that's 8x8 pixels per character, no cap. tiny little letters. iconic. π
Who is this font for, you ask? It's primarily intended for displaying information in environments, or during those early runtime states, where no external font data is available or loaded. e.g. for debugging. it's giving "we have no fonts at home" and honestly that's the whole point π
The builtin font contains the following unicode character ranges:
0x0020to0x007F(ASCII)0x00A1to0x00FF(Latin 1)0x0100to0x017F(Extended A)0x20ACto0x20AC(euro currency symbol) πΆ
Returns NULL on an error. (not me getting a NULL back and panicking π)
bestie the font memory must be freed the same way as for any other font, using al_destroy_font(3alleg5). do NOT forget. leaking memory is not the vibe. π¨
β SINCE β
5.0.8, 5.1.3 β she's been here a minute, an OG π
π SEE ALSO π
Allegro reference manual β that's the source/version energy for al_create_builtin_font(3alleg5), mwah, go forth and render text before you even have text, fr fr πβ¨
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms