ALLEGRO_FONT
typedef struct ALLEGRO_FONT ALLEGRO_FONT;
Introduced in 5.0.0
A handle identifying any kind of font. Usually you will create it with al_load_font which supports loading all kinds of TrueType fonts supported by the FreeType library. If you instead pass the filename of a bitmap file, it will be loaded with al_load_bitmap and a font in Allegro's bitmap font format will be created from it with al_grab_font_from_bitmap.
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_cursor, 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:
- Using non-ttf fonts or default text in Allegro 5 (1)
- I am looking for correct detailed instructions how to build Allegro....
- why is my code failing
- Difficulty compiling on Windows
- Screen is cleared and a new one appears Allegro5 in C?
- A little bit of fun for family and friends
- Builtin font doesn't work in resizeable display on windows
- Mouse Addon causing program crash
- TTF reinitialization bug after al_shutdown_allegro
- Game Crashing and I'm not sure why?
Other recent discussions:
- ALLEGRO_LOCKED_REGION confusion
- letters are rendered in their seperated form, this may require glyph hook maybe?
- got a bug in my FULLSCREEN WINDOWED MODE switchout
- Weird flex with my Bitmaps on my Screen
- Input routine works, then does not
- still al_draw_text() problem
- al_draw_text problem
- [A5] How to optimize al_draw_textf
- How to: al_do_multiline_text() & callback functions
- Functions returning NULL pointers when I expect otherwise