register_font_file_type man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

register_font_file_type(3)	Allegro manual	    register_font_file_type(3)

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

SYNOPSIS
       #include <allegro.h>

       void register_font_file_type(const char *ext, FONT *(*load)(const  char
       *filename, RGB *pal, void *param));

DESCRIPTION
       Informs	the load_font() functions of a new file type, providing a rou‐
       tine 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 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.

SEE ALSO
       load_font(3)

Allegro				 version 4.4.2	    register_font_file_type(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net