Fill the supplied buffer with info about the available fonts. The buffer will after function execution first contains a struct AvailFontsHeader, and then an array of struct AvailFonts element (or TAvailFonts elements if AFF_TAGGED is specified in the flags parameter). If the buffer is not big enough for the descriptions than the additional length needed will be returned.
INPUTS
buffer
pointer to a buffer in which the font descriptions should be placed.
bufBytes
size of the supplied buffer.
flags
flags telling what kind of fonts to load, for example AFF_TAGGED for tagged fonts also, AFF_MEMORY for fonts in memory, AFF_DISK for fonts on disk.
RESULT
shortage - 0 if buffer was big enough or a number telling how much additional place is needed.
EXAMPLE
SEE ALSO
OpenDiskfont(), <diskfont/diskfont.h>
NOTES
If the routine failes, then the afh_Numentries field in the AvailFontsHeader will be 0.