al_destroy_font
void al_destroy_font(ALLEGRO_FONT *f)
Introduced in 5.0.0
Frees the memory being used by a font structure. Does nothing if passed NULL.
See also: al_load_font
Examples: ex_audio_props, ex_blend2, ex_color, ex_disable_screensaver, ex_display_options, ex_font, ex_font_justify, ex_gldepth, ex_logo, ex_pixelformat, ex_premulalpha, ex_synth, ex_timer, ex_ttf, ex_vsync
Most helpful discussions:
- Bitmap behind mappy map
- [A5] Show & Hide window/display Cross-Platform ?
- Hello, font loading keeps crashing in allegro5?
- Wrapping up code in functions
- Memory leak in allegro5
- Keyboard Interrupting on Mouse Positions?
- Crash on al_get_time()
- Failed to get bitmap font with alx wrapper for Allegro 5
- al_mangled_main() issue OSX while creating a standalone bundle
- al_draw_soft_line
Other recent discussions:
- Major Memory Issue in Allegro 5 Project
- Best way for collision detection/bounding box collision
- Resetting Player Location on State Change
- Problems deleting bitmap
- Show and Remove Text with the same key
- Characters missing after al_get_text_width()
- Segmentation fault error after calling a function
- display screen manipulation
- Choppy graphics
- Drawing to display in class member functions not working