grab_font_from_bitmap(3alleg4)

grab_font_from_bitmap3alleg4

Grabs a font from a bitmap allegro game programming library.

Usage

#include <allegro.h>

FONT *grab_font_from_bitmap(BITMAP *bmp)

Overview

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.

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–10
  2. 11–13

From allegro4-doc 2:4.4.3.1-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.