al_get_glyph_width(3)

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

πŸ’– NAME πŸ’–

okay bestie, welcome to the Library Functions Manual β€” specifically the Allegro 5 API page for al_get_glyph_width. It's giving font-helper main character energy, no cap. πŸ’…

✨ SYNOPSIS ✨

#include <allegro5/allegro_font.h>

int al_get_glyph_width(const ALLEGRO_FONT *f, int codepoint)

πŸŽ€ DESCRIPTION πŸŽ€

So here's the tea: al_get_glyph_width returns the width in pixels of the glyph that corresponds with codepoint in the font f. That's the whole vibe. πŸŽ€

And if the font does not have such a glyph? It returns zero. Not a crash, not a whole dramatic moment β€” just 0. πŸ’€

πŸ¦‹ SINCE πŸ¦‹

This one has been around since 5.1.12 β€” vintage, but still serving. ✨

🌸 SEE ALSO 🌸

Go check out these other font besties:

🫢 that's the page, bestie β€” source/version: Allegro reference manual, page: al_get_glyph_width(3), and there's no date in the footer so I'm not making one up πŸ™ˆπŸ’–

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