fmfontna(3W)

fmgetfontname - return the name associated with a font

As shipped in IRIX 6.5.30. Unchanged since IRIX 6.5.

NAME
     fmgetfontname - return the name associated with a font

SYNOPSIS
     #include <fmclient.h>

     long fmgetfontname(fh, slen, str);
     fmfonthandle fh;
     long slen;
     char *str;

DESCRIPTION
     fmgetfontname gets the name of the font associated with the fonthandle in
     fh.  fmgetfontname writes this information to the location (array)
     pointed to by str.  Use slen to tell fmgetfontname the size of the array
     pointed to by str.  fmgetfontname does not write more characters to str
     than specified by slen.

     Normally, the returned value of the fmgetfontname function is the length
     of the string written to str.  But if the font does not have a name, or
     if fmgetfontname cannot find the font, the returned function value is -1.

SEE ALSO
     fminit(3W), fmfindfont(3W), fmscalefont(3W).

NOTE
     This routine is available only in immediate mode.