FONTGETID_TERM0(3W)
NAME
fontgetid_term0 − inquire the ID of a Term0 font
SYNOPSIS
int fontgetid_term0(fd,fontpath);
int fd;
char *fontpath;
DESCRIPTION
fd is an integer file descriptor for an opened Term0 window type device interface.
fontpath
a pointer to a path name for the font in question.
DISCUSSION
This routine returns the font id of the named font, if it is currently loaded. If the font is loaded more than once, the minimum font id which describes the font is returned. This routine is intended to support programs wishing to prevent multiple instances of the same font in Term0’s cache. The values returned for id have no meaning as fast alpha or font manager font ids.
HARDWARE DEPENDENCIES
Series 500:
Term0 routines do not support HP-15 (2-byte) fonts on Series 500.
SEE ALSO
fontgetname(3W),fontsize_term0(3W).
DIAGNOSTICS
A return of -1 indicates an error; otherwise the font id is returned. Possible errors can occur if the requested font is not present in Term0’s cache. See errno(2) for more information.
Hewlett-Packard Company — HP-UX Release 8.0: January 1991