PEXQueryFont - Query PEX Font Information (5.0)


Synopsis

 
  PEXFontInfo *PEXQueryFont(
        Display *display,
        PEXFont font
  )
 

Arguments

display
A pointer to a display structure returned by a successful XOpenDisplay call.

font
The resource identifier of the font.

Returns

A pointer to the font info structure; a null pointer if unsuccessful.

Description

Invoke PEXQueryFont to get information about the specified PEX font.

The information returned is identical to that which PEXListFontsWithInfo returns.

PEXlib allocates memory for the returned list of font information. Invoke PEXFreeFontInfo to deallocate the memory.

Errors

BadPEXFont
The specified font resource identifier is invalid.

See Also

For a list of PEX Font functions and related topics, see PEX Fonts.