al_get_font_line_height(3)
π al_get_font_line_height(3) π
Okay bestie, this is al_get_font_line_height(3) from the Library Functions Manual β Allegro 5 API energy, letβs go β¨
πΈ NAME πΈ
al_get_font_line_height - Allegro 5 API
π SYNOPSIS π
#include <allegro5/allegro_font.h>
int al_get_font_line_height(const ALLEGRO_FONT *f)
π¦ DESCRIPTION π¦
So this function gives you back the usual height of a line of text in the font you specified. For bitmap fonts, itβs literally just the height of all the glyph bitmaps. For truetype fonts, itβs whatever the font file itself specifies. And heads up: some special glyphs may be higher than the height returned here. iykyk π
If X is the position you specify to draw text, then the meaning of ascent and descent and the line height is like in the figure below π
X------------------------
/\ | |
/ \ | |
/____\ ascent |
/ \ | |
/ \ | height
---------------- |
| |
descent |
| |
-------------------------
π SEE ALSO π
Sign-off time, bestie! π Source/version: Allegro reference manual β date: not shown in the footer I got, so no invented date crime here π«Ά Byeee! π
π¦ 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