REGISTER_FONT_FILE_TYPE(3ALLEG4) - Linux man page online | Library functions

Register a new font loading function. Allegro game programming library.

version 4.4.2
register_font_file_type(3alleg4) Allegro manual register_font_file_type(3alleg4)


register_font_file_type - Register a new font loading function. Allegro game programming library.


#include <allegro.h> void register_font_file_type(const char *ext, FONT *(*load)(const char *filename, RGB *pal, void *param));


Informs the load_font() functions of a new file type, providing a routine to read fonts in this format. The function you supply must follow the following prototype: FONT *load_my_font(const char *filename, RGB *pal, void *param) { ... } The pal parameter can optionally be used to return a palette for the FONT. The parameter param can be anything you like: you can use this to pass information to your loading rou‐ tine, such as for instance the font height, the character range to load or the index num‐ ber of a font in a datafile. If you choose to write your own font loading code, your function should be prepared to deal with a value of NULL for either of these parameters.


Allegro version 4.4.2 register_font_file_type(3alleg4)
This manual Reference Other manuals
register_font_file_type(3alleg4) referred by load_bios_font(3alleg4) | load_bitmap_font(3alleg4) | load_dat_font(3alleg4) | load_font(3alleg4) | load_grx_font(3alleg4) | load_grx_or_bios_font(3alleg4) | load_txt_font(3alleg4)
refer to load_font(3alleg4)
Download raw manual
Index Allegro manual (+923) Allegro (+926) № 3 (+68044)
Go top