1al_get_font_line_height(3) al_get_font_line_height(3)
2
3
4
6 al_get_font_line_height - Allegro 5 API
7
9 #include <allegro5/allegro_font.h>
10
11 int al_get_font_line_height(const ALLEGRO_FONT *f)
12
14 Returns the usual height of a line of text in the specified font. For
15 bitmap fonts this is simply the height of all glyph bitmaps. For true‐
16 type fonts it is whatever the font file specifies. In particular, some
17 special glyphs may be higher than the height returned here.
18
19 If the X is the position you specify to draw text, the meaning of as‐
20 cent and descent and the line height is like in the figure below.
21
22 X------------------------
23 /\ | |
24 / \ | |
25 /____\ ascent |
26 / \ | |
27 / \ | height
28 ---------------- |
29 | |
30 descent |
31 | |
32 -------------------------
33
35 al_get_text_width(3), al_get_text_dimensions(3)
36
37
38
39Allegro reference manual al_get_font_line_height(3)