.\" Generated by the Allegro makedoc utility .TH register_font_file_type 3alleg4 "version 4.4.3" "Allegro" "Allegro manual" .SH NAME register_font_file_type \- Register a new font loading function. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B void register_font_file_type(const char *ext, .B FONT *(*load)(const char *filename, RGB *pal, void *param)); .SH DESCRIPTION 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: .nf FONT *load_my_font(const char *filename, RGB *pal, void *param) { ... } .fi 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 routine, such as for instance the font height, the character range to load or the index number 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. .SH SEE ALSO .BR load_font (3alleg4)