1grab_font_from_bitmap(3)        Allegro manual        grab_font_from_bitmap(3)
2
3
4

NAME

6       grab_font_from_bitmap  -  Grabs  a font from a bitmap Allegro game pro‐
7       gramming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       FONT *grab_font_from_bitmap(BITMAP *bmp)
14

DESCRIPTION

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

RETURN VALUE

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

SEE ALSO

28       load_bitmap_font(3)
29
30
31
32Allegro                          version 4.2.2        grab_font_from_bitmap(3)
Impressum