al_load_font
ALLEGRO_FONT *al_load_font(char const *filename, int size, int flags)
Introduced in 5.0.0
Loads a font from disk. This will use al_load_bitmap_font if you pass the name of a known bitmap format, or else al_load_ttf_font.
Bitmap and TTF fonts are affected by the current bitmap flags at the time the font is loaded.
See also: al_destroy_font, al_init_font_addon, al_register_font_loader
Examples: ex_audio_props, ex_bitmap_flip, ex_bitmap_target, ex_blend, ex_blend2, ex_blit, ex_clip, ex_color, ex_disable_screensaver, ex_display_options, ex_draw, ex_draw_bitmap, ex_filter, ex_font, ex_font_justify, ex_fs_window, ex_gldepth, ex_iphone, ex_logo, ex_membmp, ex_mouse_events, ex_native_filechooser, ex_pixelformat, ex_premulalpha, ex_prim, ex_stream_seek, ex_timer, ex_transform, ex_ttf, ex_vsync, ex_warp_mouse, ex_windows
Most helpful discussions:
- Drawing text slows down FPS dramatically
- Bitmap behind mappy map
- [A5] Show & Hide window/display Cross-Platform ?
- upgrading tank war codebase to allegro 5
- Wrapping up code in functions
- Keyboard Interrupting on Mouse Positions?
- Crash on al_get_time()
- Keyboard input
- Network Client draw issue, Network Server draws fine.
- Best way for collision detection/bounding box collision
Other recent discussions:
- Problems deleting bitmap
- Enemy AI Movement
- Show and Remove Text with the same key
- text giving error
- Segmentation fault error after calling a function
- How to reset keystate Allegro5?
- display screen manipulation
- Choppy graphics
- Drawing to display in class member functions not working
- FPS Drop (probably an easy fix)