fmenumerate(3W)

fmenumerate - enumerate the font faces available through the font manager.

As shipped in IRIX 6.5.19. Unchanged since IRIX 6.5.

NAME
     fmenumerate - enumerate the font faces available through the font
     manager.

SYNOPSIS
     #include <fmclient.h>

     void fmenumerate (callback)
     void (*callback)();

DESCRIPTION
     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);
          }


SEE ALSO
     fminit(3W), fmfontpath(3W), fmsetpath(3W).

NOTE
     This routine is available only in immediate mode.