grab_font_from_bitmap - Man Page

Grabs a font from a bitmap Allegro game programming library.

Synopsis

#include <allegro.h>

FONT *grab_font_from_bitmap(BITMAP *bmp)

Description

This function is the work-horse of load_bitmap_font, and can be used to grab a font from a bitmap in memory. You can use this if you want to generate or modify a font at runtime. The bitmap should follow the layout described for load_bitmap_font.

Return Value

Returns a pointer to the font or NULL on error. Remember that you are responsible for destroying the font when you are finished with it to avoid memory leaks.

See Also

load_bitmap_font(3)

Referenced By

load_bitmap_font(3).

version 4.4.3 Allegro manual