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:
- Problem with function 'al_draw_text'
- linking on ubuntu
- A5 : timer issue
- A5 Fullscreen Vs Windowed
- al_load_bitmap question
- Is there a more efficient way to reload/resize TTF fonts?
- I am looking for correct detailed instructions how to build Allegro....
- Screen is cleared and a new one appears Allegro5 in C?
- A little bit of fun for family and friends
- TTF reinitialization bug after al_shutdown_allegro
Other recent discussions:
- Weird flex with my Bitmaps on my Screen
- al_load_bitmap_font makes no sense
- how to make a game menu
- Filesystem access on android
- Appemting to load a font in android allegro (part 2)
- About utf8 fonts
- Install Allegro 5.2.4.1 on Win10
- Video Addon
- Timing Allegro program sometimes... fails...
- [A5+OpenGL] How to prevent al_draw_text from resetting the viewport?