1al_load_font(3) al_load_font(3)
2
3
4
6 al_load_font - Allegro 5 API
7
9 #include <allegro5/allegro_font.h>
10
11 ALLEGRO_FONT *al_load_font(char const *filename, int size, int flags)
12
14 Loads a font from disk. This will use al_load_bitmap_font_flags(3) if
15 you pass the name of a known bitmap format, or else
16 al_load_ttf_font(3).
17
18 The flags parameter is passed through to either of those functions.
19 Bitmap and TTF fonts are also affected by the current [bitmap
20 flags]al_set_new_bitmap_flags(3) at the time the font is loaded.
21
23 al_destroy_font(3), al_init_font_addon(3), al_register_font_loader(3),
24 al_load_bitmap_font_flags(3), al_load_ttf_font(3)
25
26
27
28Allegro reference manual al_load_font(3)