(C) 1998 AROS - The Amiga Research OS


NAME
#include <clib/diskfont_protos.h>

LONG AvailFonts (buffer , bufBytes , flags)

LOCATION
In DiskfontBase at offset 6

SYNOPSIS
STRPTR buffer
LONG bufBytes
LONG flags

FUNCTION
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.

BUGS

INTERNALS

HISTORY
22.06.1999 hkiel
Masquerade for #include <aros/debug.h>
20.10.1998 hkiel
Amiga Research OS
23.07.1997 nlorentz
Optimized and simplified
30.06.1997 nlorentz
Availfonts()