al_init_font_addon
void al_init_font_addon(void)
Introduced in 5.0.0
Initialise the font addon.
Note that if you intend to load bitmap fonts, you will need to initialise allegro_image separately (unless you are using another library to load images).
See also: al_init_image_addon, al_init_ttf_addon, al_shutdown_font_addon
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_synth, ex_timer, ex_transform, ex_ttf, ex_vsync, ex_warp_mouse, ex_windows
Most helpful discussions:
- Weird issue with font, can anybody help?
- Drawing text slows down FPS dramatically
- Bitmap behind mappy map
- [A5] Show & Hide window/display Cross-Platform ?
- Change adapter un runtime
- Complications when drawing FPS
- upgrading tank war codebase to allegro 5
- Font loading crashing with Allegro 5.2
- Allegro 5.2.0 released!
- Why would al_install_audio() suddenly stop working?
Other recent discussions:
- Hello, font loading keeps crashing in allegro5?
- Performance issue regarding al_put_pixel and raycasting
- Wrapping up code in functions
- Memory leak in allegro5
- Keyboard Interrupting on Mouse Positions?
- Help using mouse events in creating a Menu
- Segmentation fault al_map_rgb
- Different game update speed in different timer locations with A5 and alx
- Crash on al_get_time()
- al_mangled_main() issue OSX while creating a standalone bundle