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:

Other recent discussions: