FMENUMERATE(3W) FMENUMERATE(3W)
fmenumerate - enumerate the font faces available through the font
manager.
#include <fmclient.h>
void fmenumerate (callback)
void (*callback)();
fmenumerate accepts a callback routine as an argument. It calls the
routine once for each font face file in the font directories in the font
path, When fmenumerate calls the callback routine, it passes the callback
routine a pointer to a character string that contains the name of a font
file. For example, the following code prints the name of each "family"
to the terminal:
void printname(str)
char *str;
{
printf("%s\n", str);
}
main()
{
fminit();
fmenumerate(printname);
}
fminit(3W), fmfontpath(3W), fmsetpath(3W).
This routine is available only in immediate mode.
PPPPaaaaggggeeee 1111 [ Back ]
|