al_load_tt..._stretch_f(3)

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

πŸ’– al_load_tt..._stretch_f(3) πŸ’–

okay so bestie, welcome to the Library Functions Manual page for al_load_ttf_font_stretch_f. This is the Allegro 5 API function that reads a font from a file handle, and it's giving very specific font-loading energy πŸ’…βœ¨

🌸 NAME 🌸

al_load_ttf_font_stretch_f β€” Allegro 5 API

✨ SYNOPSIS ✨

#include <allegro5/allegro_ttf.h>

ALLEGRO_FONT *al_load_ttf_font_stretch_f(ALLEGRO_FILE *file,
    char const *filename, int w, int h, int flags)

πŸ¦‹ DESCRIPTION πŸ¦‹

So it's like al_load_ttf_font_stretch(3), but the font is read from the file handle. The filename is only used to find possible additional files next to a font file. That's the whole vibe. πŸŽ€

⚠️ Important note, bestie: the file handle is owned by the returned ALLEGRO_FONT object and must not be freed by the caller, because FreeType expects to be able to read from it at a later time. Do not free it. Not even a little. πŸ˜­πŸ’€

πŸŽ€ SINCE πŸŽ€

5.0.6, 5.1.0

🌈 SEE ALSO 🌈

al_load_ttf_font_stretch(3)


πŸ’– footer tea: source/version line is Allegro reference manual, page al_load_tt..._stretch_f(3), and there's literally no date printed on this page β€” so I'm not inventing one, periodt. πŸ’…πŸ«Ά

πŸ“¦ 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